Use when creating, configuring, or extending AI agents with MiniMax M2.1 model - provides complete framework patterns, tool integration, memory systems, and MCP connectivity for building production-ready agents
Framework completo para crear agentes AI usando el modelo MiniMax M2.1 con API compatible con Anthropic. Integra herramientas del sistema, memoria de sesión, Claude Skills, y servidores MCP para construir agentes robustos y extensible.
Actívame cuando el usuario quiera:
No me uses para:
from mini_agent import LLMClient, Agent
from mini_agent.tools import ReadTool, WriteTool, EditTool, BashTool
async def create_simple_agent():
# 1. Configurar cliente LLM
llm_client = LLMClient(
api_key="tu-api-key",
api_base="https://api.minimax.io",
model="MiniMax-M2.1",
)
# 2. Definir herramientas
tools = [
ReadTool(workspace_dir="./workspace"),
WriteTool(workspace_dir="./workspace"),
EditTool(workspace_dir="./workspace"),
BashTool(),
]
# 3. Crear sistema de memoria
from mini_agent.tools import SessionNoteTool, RecallNoteTool
# 4. Crear agente
agent = Agent(
llm_client=llm_client,
system_prompt="Eres un asistente útil y preciso.",
tools=tools,
max_steps=50,
workspace_dir="./workspace",
)
# 5. Ejecutar tarea
agent.add_user_message("Crea un archivo hello.py que imprima 'Hola Mundo'")
result = await agent.run()
return result
# config.yaml
api_key: "YOUR_API_KEY"
api_base: "https://api.minimax.io"