@adcp/client API Reference - v3.3.3
    Preparing search index...

    Variable testAgentNoAuthConst

    testAgentNoAuth: AgentClient = ...

    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/client/testing';

    // This will fail with authentication error
    try {
    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.