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

    Class ProtocolClient

    Universal protocol client - automatically routes to the correct protocol implementation

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Call a tool on an agent using the appropriate protocol

      Parameters

      • agent: AgentConfig

        Agent configuration

      • toolName: string

        Name of the tool/skill to call

      • args: Record<string, any>

        Tool arguments (includes reporting_webhook if needed - NOT removed)

      • debugLogs: any[] = []

        Debug log array

      • OptionalwebhookUrl: string

        Optional: URL for async task status notifications (push_notification_config)

      • OptionalwebhookSecret: string

        Optional: Secret for push_notification_config authentication

      • OptionalwebhookToken: string

        Optional: Token for push_notification_config validation

        IMPORTANT: webhookUrl/Secret/Token are for ASYNC TASK STATUS (push_notification_config). For reporting webhooks (reporting_webhook), include them directly in args - they stay in skill parameters.

      Returns Promise<any>