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

Method generate

mini_agent/llm/base.py:41–55  ·  view source on GitHub ↗

Generate response from LLM. Args: messages: List of conversation messages tools: Optional list of Tool objects or dicts Returns: LLMResponse containing the generated content, thinking, and tool calls

(
        self,
        messages: list[Message],
        tools: list[Any] | None = None,
    )

Source from the content-addressed store, hash-verified

39
40 @abstractmethod
41 async def generate(
42 self,
43 messages: list[Message],
44 tools: list[Any] | None = None,
45 ) -> LLMResponse:
46 """Generate response from LLM.
47
48 Args:
49 messages: List of conversation messages
50 tools: Optional list of Tool objects or dicts
51
52 Returns:
53 LLMResponse containing the generated content, thinking, and tool calls
54 """
55 pass
56
57 @abstractmethod
58 def _prepare_request(

Callers 3

_create_summaryMethod · 0.45
runMethod · 0.45
_run_turnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected