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

Method _prepare_request

mini_agent/llm/base.py:58–72  ·  view source on GitHub ↗

Prepare the request payload for the API. Args: messages: List of conversation messages tools: Optional list of available tools Returns: Dictionary containing the request payload

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

Source from the content-addressed store, hash-verified

56
57 @abstractmethod
58 def _prepare_request(
59 self,
60 messages: list[Message],
61 tools: list[Any] | None = None,
62 ) -> dict[str, Any]:
63 """Prepare the request payload for the API.
64
65 Args:
66 messages: List of conversation messages
67 tools: Optional list of available tools
68
69 Returns:
70 Dictionary containing the request payload
71 """
72 pass
73
74 @abstractmethod
75 def _convert_messages(self, messages: list[Message]) -> tuple[str | None, list[dict[str, Any]]]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected