AgentTest makes it easy to run A/B tests on your AI agents or prompt variations. This guide shows you how to quickly get started using either our JavaScript SDK or the REST API.
const { variant, payload } = await client.assign('experiment-slug', { userId: 'user-123', context: { sessionId: 'abc' }})// Use the returned payload to run your agent