MCPcopy Create free account
hub / github.com/modelscope/ms-agent / Runtime

Class Runtime

ms_agent/agent/runtime.py:9–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8@dataclass
9class Runtime:
10
11 should_stop: bool = False
12
13 llm: LLM = None
14
15 tag: Optional[str] = None
16
17 round: int = 0
18
19 def to_dict(self):
20 return {
21 'should_stop': self.should_stop,
22 'tag': self.tag,
23 'round': self.round,
24 }
25
26 def from_dict(self, data: dict):
27 self.should_stop = data['should_stop']
28 self.tag = data['tag']
29 self.round = data['round']

Callers 2

prepare_runtimeMethod · 0.90
read_historyMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected