Handle webhook from agent (async task completion or notifications)
Webhook payload from agent
Optionalsignature: stringOptional signature for verification (X-ADCP-Signature)
Optionaltimestamp: string | numberOptional timestamp for verification (X-ADCP-Timestamp)
OptionaltaskType: stringTask type from URL path (e.g., 'create_media_buy')
Whether webhook was handled successfully
Generate webhook URL for a specific task and operation
Type of task (e.g., 'get_products', 'media_buy_delivery')
Operation ID for this request
Full webhook URL
Verify webhook signature using HMAC-SHA256 per AdCP PR #86 spec
Webhook payload object
X-ADCP-Signature header value (format: "sha256=...")
X-ADCP-Timestamp header value (Unix timestamp)
true if signature is valid
Discover available advertising products
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsList available creative formats
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsCreate a new media buy
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsUpdate an existing media buy
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsSync creative assets
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsList creative assets
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsGet media buy delivery information
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsList authorized properties
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsProvide performance feedback
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsGet audience signals
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsActivate audience signals
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsContinue the conversation with a natural language message
Natural language message to send to the agent
OptionalinputHandler: InputHandlerHandler for any clarification requests
Optionaloptions: TaskOptionsGet the full conversation history
Clear the conversation context (start fresh)
Get the current conversation context ID
Set a specific conversation context ID
Get the agent configuration
Get the agent ID
Get the agent name
Get the agent protocol
Get agent information including capabilities
Check if there's an active conversation
Get active tasks for this agent
Execute any ADCP task by name with full type safety
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptions// ✅ TYPE-SAFE: Automatic response type inference
const result = await agent.executeTask('get_products', params);
// result is TaskResult<GetProductsResponse> - no casting needed!
// ✅ CUSTOM TYPES: For non-standard tasks
const customResult = await agent.executeTask<MyCustomResponse>('custom_task', params);
Execute any task by name with custom response type
OptionalinputHandler: InputHandlerOptionaloptions: TaskOptionsList all tasks for this agent
Get detailed information about a specific task
Subscribe to task notifications for this agent
Subscribe to all task events
Register webhook for task notifications
OptionaltaskTypes: string[]Unregister webhook notifications
Per-agent client that maintains conversation context across calls
This wrapper provides a persistent conversation context for a single agent, making it easy to have multi-turn conversations and maintain state.