Skip to content
On this page

Agent API

Constructor

```typescript new Agent(config: AgentConfig) ```

Methods

execute()

Executes the agent and returns results.

on(event, callback)

Subscribes to agent events.

Events

  • agentCreated
  • agentCompleted
  • toolCalls