How ibm/vakra works
VAKRA is an executable benchmark for multi-step agent tool use across structured APIs and retrieved documents. The principal workflow runs benchmark items through an agent, exposes domain tools through MCP, and records trajectories for evaluation; separate evaluation components judge and score those traces. The README also describes API-style and multi-turn capabilities. Sampled source confirms the runner, agent, server, and evaluator structure, but not every runtime connection—unverified links are dashed.
Main entry points: benchmark_runner.py Benchmark Runner · evaluator.py Trajectory Evaluator · agent_interface.py Agent Interface · mcp_server.py Slot-Filling Server
Components 21
Benchmark Runs
- Benchmark Runner
benchmark_runner.py - MCP Tool Client
agents/mcp_tool_wrapper.py
Agent Reasoning
- Agent Interface
agents/agent_interface.py - Tool Shortlisting
agents/components/tool_shortlister.py - LLM Adapter
agents/llm.py
API Environment
- Slot-Filling Server
environment/m3/python_tools/mcp/mcp_server.py - Tool Registry
environment/m3/python_tools/tools/tool_registry.py - Tool Models
environment/m3/python_tools/tools/pydantic_models.py - Slot-Filling Tools
environment/m3/python_tools/tools/slot_filling_tools.py - REST API Host
environment/m3/rest/app.py - Domain API Routes
environment/m3/rest/server - BPO Tool Server
environment/bpo/mcp/server.py - BPO API Functions
environment/bpo/api - Candidate Data
environment/bpo/api/data_loader.py
Document Retrieval
- Retrieval Service
environment/retrievers/server.py - Chroma Retriever
environment/retrievers/chromadb_retriever.py
Trajectory Evaluation
- Trajectory Evaluator
evaluator/evaluator.py - Tool Replay
evaluator/mcp_tools.py - Answer Judge
evaluator/judge.py - Trajectory Scorer
evaluator/scorer.py
Other components
- Benchmark User
Connections 18
- Benchmark User → Benchmark Runner: starts run
- Benchmark Runner → Agent Interface: runs agent
benchmark_runner.py - Benchmark Runner → MCP Tool Client: connects tools
benchmark_runner.py - Benchmark Runner → Slot-Filling Server: launches server
benchmark_runner.py - Agent Interface → Tool Shortlisting: uses shortlist
agents/agent_interface.py - Agent Interface → LLM Adapter: calls model
agents/agent_interface.py - Slot-Filling Server → Tool Registry: registers tools
environment/m3/python_tools/mcp/mcp_server.py - Slot-Filling Server → Tool Models: uses schemas
environment/m3/python_tools/mcp/mcp_server.py - Tool Registry → Slot-Filling Tools: registers tools
environment/m3/python_tools/tools/tool_registry.py - REST API Host → Domain API Routes: mounts routes
environment/m3/rest/app.py - BPO Tool Server → BPO API Functions: dispatches calls
environment/bpo/mcp/server.py - BPO API Functions → Candidate Data: loads records
environment/bpo/api/data_loader.py - Retrieval Service → Chroma Retriever: uses retriever
environment/retrievers/server.py - Benchmark Runner → Retrieval Service: uses retrieval
- Trajectory Evaluator → Tool Replay: replays tools
evaluator/evaluator.py - Trajectory Evaluator → Answer Judge: requests judgment
evaluator/evaluator.py - Trajectory Evaluator → Trajectory Scorer: scores traces
evaluator/evaluator.py - Tool Replay → MCP Tool Client: uses MCP