Agent Integration Guide
Integrating an agent with AgentV follows a “Zero-Touch” philosophy, supporting everything from local Python scripts to enterprise-grade HTTP services.
🚀 Quick Start (HTTP)
Section titled “🚀 Quick Start (HTTP)”The fastest way to integrate is via a standard HTTP POST endpoint.
1. The Agent Interface
Section titled “1. The Agent Interface”Your agent should expose a POST endpoint (e.g., /execute) that accepts and returns JSON.
Request Protocol:
{ "task_description": "Help me with my bill.", "turn": 1, "conversation_history": [], "run_id": "eval_20260701_1234"}Completion Protocol:
{ "action": "final_answer", "summary": "I can help with that. What is your account number?"}2. Configuration
Section titled “2. Configuration”Point the harness to your agent’s URL in your .env file:
AGENT_API_URL=http://localhost:5001/execute3. Execution
Section titled “3. Execution”Run a benchmark using the default HTTP protocol:
agentv run --path scenarios/loan_approval.json🛠 Supported Agent Protocols
Section titled “🛠 Supported Agent Protocols”AgentV supports a wide range of communication patterns. Use the --protocol and --agent flags to select your target.
| Protocol | Description | CLI Example |
|---|---|---|
| HTTP | Standard web API interaction. | --protocol http --agent http://localhost:5001/execute |
| Local | Spawns a local process (stdin/stdout). | --protocol local --agent-cmd "python my_agent.py" |
| Socket | TCP or Unix socket communication. | --protocol socket --agent-socket tcp:127.0.0.1:9000 |
| OpenAI | Official OpenAI API / Assistants. | --protocol openai --agent openai://gpt-5.4-mini |
| Claude | Anthropic Claude API. | --protocol claude --agent claude://claude-4-6-sonnet |
| Gemini | Google Gemini API (includes Vertex AI). | --protocol gemini --agent gemini://gemini-2.5-flash |
| Ollama | Local model execution. | --protocol ollama --agent ollama://llama4 |
🏗 Framework Adapters
Section titled “🏗 Framework Adapters”AgentV includes native adapters for the leading agentic frameworks.
AG2 (formerly AutoGen)
Section titled “AG2 (formerly AutoGen)”pip install ag2agentv run --path scenarios/loan_approval.json --protocol ag2 --agent ag2://localhost:8000LangChain / LangGraph
Section titled “LangChain / LangGraph”pip install langchain langgraphagentv run --path scenarios/loan_approval.json --protocol langgraph --agent langgraph://localhost:8000/graphCrewAI
Section titled “CrewAI”pip install crewaiagentv run --path scenarios/loan_approval.json --protocol crewai🧪 Verification & Debugging
Section titled “🧪 Verification & Debugging”Trace Replay
Section titled “Trace Replay”If your agent makes a “wrong turn,” use the replay command to step through the interaction logs.
agentv replay --run-id <id>Visual Debugger
Section titled “Visual Debugger”Launch the console to see real-time Mermaid trajectories of your agent’s decision-making process.
agentv console