MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / __init__

Method __init__

AgentBench.old/src/agent.py:23–26  ·  view source on GitHub ↗
(self, model_inference, history=None)

Source from the content-addressed store, hash-verified

21
22class Session:
23 def __init__(self, model_inference, history=None) -> None:
24 self.history: list[dict] = history or []
25 self.exception_raised = False
26 self.model_inference = self.wrap_inference(model_inference)
27
28 def inject(self, message: dict) -> None:
29 assert isinstance(message, dict)

Callers

nothing calls this directly

Calls 1

wrap_inferenceMethod · 0.95

Tested by

no test coverage detected