Skip to content

Agent Integration Guide

Integrating an agent with AgentV follows a “Zero-Touch” philosophy, supporting everything from local Python scripts to enterprise-grade HTTP services.

The fastest way to integrate is via a standard HTTP POST endpoint.

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?"
}

Point the harness to your agent’s URL in your .env file:

AGENT_API_URL=http://localhost:5001/execute

Run a benchmark using the default HTTP protocol:

Terminal window
agentv run --path scenarios/loan_approval.json

AgentV supports a wide range of communication patterns. Use the --protocol and --agent flags to select your target.

ProtocolDescriptionCLI Example
HTTPStandard web API interaction.--protocol http --agent http://localhost:5001/execute
LocalSpawns a local process (stdin/stdout).--protocol local --agent-cmd "python my_agent.py"
SocketTCP or Unix socket communication.--protocol socket --agent-socket tcp:127.0.0.1:9000
OpenAIOfficial OpenAI API / Assistants.--protocol openai --agent openai://gpt-5.4-mini
ClaudeAnthropic Claude API.--protocol claude --agent claude://claude-4-6-sonnet
GeminiGoogle Gemini API (includes Vertex AI).--protocol gemini --agent gemini://gemini-2.5-flash
OllamaLocal model execution.--protocol ollama --agent ollama://llama4

AgentV includes native adapters for the leading agentic frameworks.

Terminal window
pip install ag2
agentv run --path scenarios/loan_approval.json --protocol ag2 --agent ag2://localhost:8000
Terminal window
pip install langchain langgraph
agentv run --path scenarios/loan_approval.json --protocol langgraph --agent langgraph://localhost:8000/graph
Terminal window
pip install crewai
agentv run --path scenarios/loan_approval.json --protocol crewai

If your agent makes a “wrong turn,” use the replay command to step through the interaction logs.

Terminal window
agentv replay --run-id <id>

Launch the console to see real-time Mermaid trajectories of your agent’s decision-making process.

Terminal window
agentv console