MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / generate

Method generate

tests/test_acp.py:25–40  ·  view source on GitHub ↗
(self, messages, tools)

Source from the content-addressed store, hash-verified

23 self.calls = 0
24
25 async def generate(self, messages, tools):
26 self.calls += 1
27 if self.calls == 1:
28 return LLMResponse(
29 content="",
30 thinking="calling echo",
31 tool_calls=[
32 ToolCall(
33 id="tool1",
34 type="function",
35 function=FunctionCall(name="echo", arguments={"text": "ping"}),
36 )
37 ],
38 finish_reason="tool",
39 )
40 return LLMResponse(content="done", thinking=None, tool_calls=None, finish_reason="stop")
41
42
43class EchoTool(Tool):

Callers

nothing calls this directly

Calls 3

LLMResponseClass · 0.90
ToolCallClass · 0.90
FunctionCallClass · 0.90

Tested by

no test coverage detected