Skip to content

Function: newAgent()

newAgent(): AgentDefinitionBuilder

Creates a new agent definition you can configure with builder methods.

Example

export const agent = newAgent();
agent.setInstructions('You help a team run async standups. Keep replies short.');

Returns

AgentDefinitionBuilder