Back to Documentation
Creating Agents
Build and deploy AI agents with custom tools, memory, and execution policies.
Create Your First Agent
const agent = await client.agents.create({
name: "Customer Support Agent",
description: "Handles customer inquiries",
model: "gpt-4",
systemPrompt: "You are a helpful customer support agent...",
tools: ["search_knowledge_base", "create_ticket"],
memory: { type: "conversation", maxMessages: 50 }
});
console.log('Agent ID:', agent.id);Agent Configuration
System Prompt
Define the agent's personality, capabilities, and constraints.
Model Selection
Choose the underlying LLM (GPT-4, Claude, etc.).
Tools
Attach functions the agent can call during execution.
Memory
Configure how the agent remembers past interactions.