You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: v0.2.0 | Status: Stable | Last Updated: March 2026
1. Overview
The agents module is the core framework for AI agent integration in Codomyrmex. It provides abstract interfaces, concrete client implementations for 12 providers, response parsing utilities, multi-agent pooling, evaluation, and conversation history.
2. Core Components
2.1 Base Classes
AgentInterface: The protocol that all agents must implement
BaseAgent: Common functionality (execute, validate, test_connection)
APIAgentBase: Base for HTTP API-based agents (error handling, token extraction, client init)
CLIAgentBase: Base for CLI wrapper agents (subprocess execution, streaming, health checks)
fromcodomyrmex.agentsimportClaudeClient, AgentRequestclient=ClaudeClient()
request=AgentRequest(prompt="Write a fibonacci function in Python")
response=client.execute(request)
print(response.content)