Const
Pre-configured test agent client WITHOUT authentication (MCP protocol). Demonstrates what happens when calling authenticated endpoints without auth. Useful for testing error handling and showing auth vs no-auth differences.
import { testAgentNoAuth } from '@adcp/sdk/testing';// This will fail with authentication errortry { const result = await testAgentNoAuth.getProducts({ brief: 'Coffee subscription', promoted_offering: 'Premium coffee' });} catch (error) { console.log('Expected auth error:', error.message);} Copy
import { testAgentNoAuth } from '@adcp/sdk/testing';// This will fail with authentication errortry { const result = await testAgentNoAuth.getProducts({ brief: 'Coffee subscription', promoted_offering: 'Premium coffee' });} catch (error) { console.log('Expected auth error:', error.message);}
This agent intentionally does NOT include authentication. Use it to demonstrate authentication requirements and error handling.
Pre-configured test agent client WITHOUT authentication (MCP protocol). Demonstrates what happens when calling authenticated endpoints without auth. Useful for testing error handling and showing auth vs no-auth differences.