Get AgentProbe running in under 3 minutes.
npm install @neuzhou/agentprobeOr globally:
npm install -g @neuzhou/agentprobeCreate tests/hello.test.yaml:
name: booking-agent
adapter: openai
model: gpt-4o
tests:
- input: "Book a flight from NYC to London for next Friday"
expect:
tool_called: search_flights
response_contains: "flight"
no_hallucination: true
max_steps: 5npx agentprobe run tests/hello.test.yamlThat's it. 4 assertions, 1 YAML file, zero boilerplate.
import { AgentProbe } from '@neuzhou/agentprobe';
const probe = new AgentProbe({ adapter: 'openai', model: 'gpt-4o' });
const result = await probe.test({
input: 'What is the capital of France?',
expect: {
response_contains: 'Paris',
no_hallucination: true,
latency_ms: { max: 3000 },
},
});
console.log(result.passed ? '✅ Passed' : '❌ Failed');Set your API key for the adapter you're using:
# OpenAI
export OPENAI_API_KEY=sk-...
# Anthropic
export ANTHROPIC_API_KEY=sk-ant-...
# Azure OpenAI
export AZURE_OPENAI_API_KEY=...
export AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.comagentprobe initThis creates a starter project with example tests and configuration.
agentprobe doctorVerifies that your environment, dependencies, and API keys are properly configured.
- Writing Tests — Learn the full YAML test format
- Adapters — Connect to your LLM provider
- CLI Reference — All available commands