OptionalworkingTimeout?: numberDefault timeout for 'working' status (max 120s per PR #78)
OptionalpollingInterval?: numberPolling interval for 'working' status in milliseconds (default: 2000ms)
OptionaldefaultMaxClarifications?: numberDefault max clarification attempts
OptionalenableConversationStorage?: booleanEnable conversation storage
OptionalwebhookManager?: WebhookManagerWebhook manager for submitted tasks
OptionaldeferredStorage?: Storage<DeferredTaskState>Storage for deferred task state
OptionalwebhookUrlTemplate?: stringWebhook URL template for protocol-level webhook support
OptionalagentId?: stringAgent ID for webhook URL generation
OptionalwebhookSecret?: stringWebhook secret for HMAC authentication (min 32 chars)
OptionalstrictSchemaValidation?: booleanFail tasks when response schema validation fails (default: true)
OptionallogSchemaViolations?: booleanLog all schema validation violations to debug logs (default: true)
OptionalonActivity?: (activity: Activity) => void | Promise<void>Global activity callback for observability
Execute a task with an agent using PR #78 async patterns Handles: working (keep SSE open), submitted (webhook), input-required (handler), completed
OptionalinputHandler: InputHandlerResume a deferred task (client deferral)
Get task list for a specific agent
Get detailed information about a specific task
Subscribe to task updates for a specific agent
Subscribe to task events with detailed callbacks
Register webhook for task notifications
OptionaltaskTypes: string[]
Core task execution engine that handles the conversation loop with agents