Add MiniMax as first-class LLM provider for agents and classifiers#454
Open
octo-patch wants to merge 1 commit into
Open
Add MiniMax as first-class LLM provider for agents and classifiers#454octo-patch wants to merge 1 commit into
octo-patch wants to merge 1 commit into
Conversation
Add MiniMaxAgent and MiniMaxClassifier that leverage MiniMax's OpenAI-compatible API (https://api.minimax.io/v1) with M2.7 and M2.7-highspeed models. Includes temperature clamping, custom base_url support, streaming, and 40 tests (24 agent + 12 classifier unit tests + 4 integration tests).
Collaborator
|
Hey @octo-patch, two things must be fixed before this can merge. First, is defined twice — once in and again locally in . The classifier should import from instead of redefining its own constant. Second, there is no docs page under for or — every other built-in agent/classifier has one, and per project rules a working code example is required before this can merge. TypeScript parity is also missing — that does not need to be in this PR, but it should at minimum be tracked in a follow-up issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds MiniMax as a first-class LLM provider for both agents and classifiers in the Python SDK, following the same patterns as the existing OpenAI and Anthropic providers.
What's included
MiniMaxAgent— Agent implementation using MiniMax's OpenAI-compatible API (https://api.minimax.io/v1), supporting both streaming and non-streaming responses, custom system prompts with template variables, retriever integration, and configurable inference parametersMiniMaxClassifier— Classifier implementation for intent routing using MiniMax models with function calling supportMINIMAX_MODEL_ID_M2_7andMINIMAX_MODEL_ID_M2_7_HIGHSPEEDfor the latest MiniMax modelsminimaxinstall extra —pip install "agent-squad[minimax]"(reuses theopenaiSDK dependency)Files changed (12 files, ~1091 additions)
python/src/agent_squad/agents/minimax_agent.pyMiniMaxAgent+MiniMaxAgentOptionspython/src/agent_squad/classifiers/minimax_classifier.pyMiniMaxClassifier+MiniMaxClassifierOptionspython/src/agent_squad/agents/__init__.pypython/src/agent_squad/classifiers/__init__.pypython/src/agent_squad/types/types.pypython/src/agent_squad/types/__init__.pypython/setup.cfgminimaxinstall extraREADME.mdpython/src/tests/agents/test_minimax_agent.pypython/src/tests/agents/test_minimax_agent_integration.pypython/src/tests/classifiers/test_minimax_classifier.pypython/src/tests/classifiers/test_minimax_classifier_integration.pyTest plan
Usage example