Create a custom test agent configuration. Useful when you need to modify the default test agent setup.
Optional
Partial agent config to override defaults
Complete agent configuration
import { createTestAgent, AdCPClient } from '@adcp/client/testing';// Use default test agent with custom IDconst config = createTestAgent({ id: 'my-test-agent' });const client = new AdCPClient([config]); Copy
import { createTestAgent, AdCPClient } from '@adcp/client/testing';// Use default test agent with custom IDconst config = createTestAgent({ id: 'my-test-agent' });const client = new AdCPClient([config]);
// Use A2A protocol instead of MCPconst config = createTestAgent({ protocol: 'a2a', agent_uri: 'https://test-agent.adcontextprotocol.org'}); Copy
// Use A2A protocol instead of MCPconst config = createTestAgent({ protocol: 'a2a', agent_uri: 'https://test-agent.adcontextprotocol.org'});
Create a custom test agent configuration. Useful when you need to modify the default test agent setup.