The configuration for the task
The prompt to run, e.g. "What time is it in New York?"
Should the task be run step by step. Every step must be confirmed by the user by sending a resume event.
Protected WebOptional protocols: string | string[]Readonly CLOSED: 3Readonly CLOSING: 2Readonly CONNECTING: 0Readonly OPEN: 1Protected authorizationProtected configProtected fetchOptional init: RequestInitOptional init: RequestInitProtected promptProtected socketProtected stepEmit an event with data. This will call all listeners for the event and all taps of this emitter.
Remove a listener for an event.
Register a listener for an event.
Register a listener for an event that will only be called once.
Send an event to the Task Agent
What type of event to send
The data to send
Start the task
Optional events: (keyof ServerEvents)[]The events to listen for, defaults to listening to all events
Tap into all events.
Stop tapping into all events for a TapFn.
Use a plugin for the task
The plugin to use
Wait for an event to be emitted once. This is the async version of once.
Task that can be run in the Task Agent