Creating Agents
Guide to creating and configuring AI agents in Julep
Overview
Agents in Julep are AI-powered entities that can execute tasks and interact with users. This guide will walk you through the process of creating and configuring agents.
Creating an Agent
You can create an agent using either the Python or Node.js SDK:
Agent Configuration Options
When creating an agent, you can specify several configuration options:
Option | Type | Description |
---|---|---|
name | string | The name of your agent |
model | string | The language model to use (e.g., “claude-3.5-sonnet”, “gpt-4”) |
about | string | A description of your agent’s purpose and capabilities |
metadata | object | Additional metadata for your agent |
tools | array | List of tools the agent can use |
Supported Models
Julep supports various language models:
- Anthropic Models
- claude-3.5-sonnet
- claude-3.5-opus
- claude-2.1
- claude-2.0
- OpenAI Models
- gpt-4
- gpt-4-turbo
- gpt-3.5-turbo
Best Practices
- Clear Purpose: Give your agent a clear, specific purpose through the
about
field - Appropriate Model: Choose a model that matches your needs in terms of capability and cost
- Descriptive Name: Use a name that reflects the agent’s purpose
- Metadata: Use metadata to store configuration that might need to change
Example: Creating a Specialized Agent
Here’s an example of creating a more specialized agent with metadata and tools:
Managing Agents
Once created, you can manage your agents:
Next Steps
After creating your agent, you might want to: