Complete API reference for the agent() method
"anthropic"
, "openai"
"claude-sonnet-4-20250514"
, "claude-3-5-sonnet-20241022"
OpenAI: "computer-use-preview"
, "gpt-4o"
apiKey
, baseURL
, organization
20
true
0
Promise<AgentResult>
AgentResult Interface: