MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / __init__

Method __init__

KVCOMM/graph/node.py:44–67  ·  view source on GitHub ↗

Initializes a new Node instance.

(self,
                 id: Optional[str],
                 agent_name:str="",
                 domain:str="",
                 llm_name:str = "",
                 )

Source from the content-addressed store, hash-verified

42 """
43
44 def __init__(self,
45 id: Optional[str],
46 agent_name:str="",
47 domain:str="",
48 llm_name:str = "",
49 ):
50 """
51 Initializes a new Node instance.
52 """
53 global node_id_
54 self.id:str = id if id is not None else str(node_id_)
55 node_id_ += 1
56 self.agent_name:str = agent_name
57 self.domain:str = domain
58 self.llm_name:str = llm_name
59 self.spatial_predecessors: List[Node] = []
60 self.spatial_successors: List[Node] = []
61 self.temporal_predecessors: List[Node] = []
62 self.temporal_successors: List[Node] = []
63 self.inputs: List[Any] = []
64 self.outputs: List[Any] = []
65 self.raw_inputs: List[Any] = []
66 self.role = ""
67 self.last_memory: Dict[str,List[Any]] = {'inputs':[],'outputs':[],'raw_inputs':[]}
68
69 @property
70 def node_name(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected