Skip to main content
All examples follow the same pattern: wrap your framework’s output in a function that accepts an EvaluationCase and returns a str, dict, or EvaluationResult.
EvaluationCase gives your function: What you do inside the function is entirely up to you: call an LLM directly, invoke a LangChain chain, kick off a CrewAI crew, or hit an HTTP endpoint. What you return determines what AgentX sees:
Returning a plain str is enough to get scored. Add metadata: {"model": ...} when you want the Sovereignty & Portability breakdown, or trace_id when you want a full Execution Timeline attached to the result. Neither is required.
Pick your framework:

OpenAI

Plain OpenAI chat completions

OpenAI Agents SDK

Agent/Runner, tool calling, handoffs

Anthropic Claude

Claude via the Anthropic SDK

LangChain

Prompt templates and chains

CrewAI

Multi-agent crews

AutoGen / AG2

Conversable agents

LlamaIndex

RAG query engines

HTTP Endpoint

Any agent exposed as a web service

Pre-Defined Results

Score outputs you already generated
A complete, runnable version of each example lives in the AgentX-Python repository.