What are Agents?
Agents = AI personalities with memory, actions, and unique behaviors.Character Interface
The complete TypeScript interface for agents:| Property | Type | Required | Description |
|---|---|---|---|
name | string | ✅ | Agent’s display name |
bio | string | string[] | ✅ | Background/personality description |
adjectives | string[] | ❌ | Character traits (e.g., “helpful”, “creative”) |
topics | string[] | ❌ | Conversation topics the agent knows |
knowledge | array | ❌ | Facts, files, or directories of knowledge |
messageExamples | array[][] | ❌ | Example conversations (2D array) |
postExamples | string[] | ❌ | Example social media posts |
style | object | ❌ | Writing style for different contexts |
plugins | string[] | ❌ | Enabled plugin packages |
settings | object | ❌ | Configuration values |
secrets | object | ❌ | Sensitive configuration |
id | UUID | ❌ | Unique identifier |
username | string | ❌ | Social media username |
system | string | ❌ | System prompt override |
templates | object | ❌ | Custom prompt templates |
| all?: string[]; // General style rules | |||
| chat?: string[]; // Chat-specific style | |||
| post?: string[]; // Post-specific style | |||
| }; |
Knowledge Configuration
Memory & Runtime
Agents remember:- Recent conversations
- Important facts about users
- Context from previous interactions
Agent instances with status tracking:
Character Definition
Characters can be defined in TypeScript (recommended) or JSON:- TypeScript (Recommended)
- JSON
Creating an Agent
Best Practices
- Keep personality traits consistent
- Provide diverse message examples
- Focus knowledge on the agent’s purpose
- Test conversations before deploying
- Use TypeScript for better type safety
- Load plugins conditionally based on environment
Next Steps
Add Plugins
Extend your agent’s capabilities
Build Projects
Create multi-agent systems

