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

Method generate

mini_agent/llm/llm_wrapper.py:113–127  ·  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

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

Source from the content-addressed store, hash-verified

111 self._client.retry_callback = value
112
113 async def generate(
114 self,
115 messages: list[Message],
116 tools: list | None = None,
117 ) -> LLMResponse:
118 """Generate response from LLM.
119
120 Args:
121 messages: List of conversation messages
122 tools: Optional list of Tool objects or dicts
123
124 Returns:
125 LLMResponse containing the generated content
126 """
127 return await self._client.generate(messages, tools)

Callers 9

demo_anthropic_providerFunction · 0.95
demo_openai_providerFunction · 0.95
demo_default_providerFunction · 0.95
demo_provider_comparisonFunction · 0.95
demo_tool_schemasFunction · 0.95
demo_multiple_toolsFunction · 0.95

Calls

no outgoing calls

Tested by 3