MCPcopy
hub / github.com/algorithmicsuperintelligence/optillm / MCTSNode

Class MCTSNode

optillm/mcts.py:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 return f"System: {self.system_prompt}\nHistory: {self.conversation_history}\nCurrent Query: {self.current_query}"
19
20class MCTSNode:
21 def __init__(self, state: DialogueState, parent=None):
22 self.state = state
23 self.parent = parent
24 self.children = []
25 self.visits = 0
26 self.value = 0
27
28class MCTS:
29 def __init__(self, simulation_depth, exploration_weight, client, model, request_config=None, request_id=None):

Callers 2

expandMethod · 0.85
searchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected