Agents With Full Control
Tool calling, error recovery, and cancellation built in. Need custom exit logic, setup phases, or human interaction? Copy the agent and make it yours.
@Transition({ from: 'planning', to: 'implementing' })async runAgent(state: MyState) { await this.agent.run( { system: 'You are a code exploration agent.', tools: ['glob', 'grep', 'read'], userMessage: 'Find all API endpoints.', }, { callback: { transition: 'agentDone' } }, );}