Core Concepts
Essential concepts and terminology needed to understand Julep
Core Concepts
Understanding Julep’s core concepts is essential for building effective AI applications. This guide covers the fundamental components and how they work together.
Agents
Agents are AI-powered entities that can perform tasks and interact with users. They are the central building blocks of Julep applications.
Key aspects of agents:
- Identity: Each agent has a name and description that defines its role
- Model: The underlying language model (e.g., Claude, GPT-4)
- Memory: Ability to maintain context across interactions
- Tools: Access to various capabilities through integrated tools
Tasks
Tasks are multi-step workflows that agents can execute. They define a sequence of actions to achieve a specific goal.
Key aspects of tasks:
- Structure: Defined sequence of steps
- Steps Types: Various actions like prompts, tool calls, and control flow
- Context: Access to inputs and previous step results
- Tools: Integration with external services and APIs
Sessions
Sessions maintain the state and context of interactions between users and agents.
Key aspects of sessions:
- State Management: Maintains conversation history
- Context: Preserves relevant information across interactions
- Memory: Handles long-term and working memory
- User Association: Links conversations to specific users
Tools
Tools extend an agent’s capabilities by providing access to external functionality.
Types of tools:
- User-defined Functions: Custom functions you implement
- System Tools: Built-in Julep API operations
- Integrations: Pre-built third-party service connections
- API Calls: Direct external API interactions
Executions
Executions are instances of tasks being run with specific inputs.
Key aspects of executions:
- State: Tracks progress and status
- Input/Output: Manages data flow
- History: Records step-by-step execution
- Error Handling: Manages failures and retries
Documents
Documents store information that agents can reference during tasks.
Key aspects of documents:
- Storage: Persistent knowledge base
- Search: Semantic search capabilities
- Metadata: Additional context and categorization
- Versioning: Document history and updates
Putting It All Together
Here’s how these concepts work together in a typical Julep application:
- Create an Agent with specific capabilities
- Define Tasks the agent can perform
- Use Tools to extend functionality
- Maintain context with Sessions
- Store knowledge in Documents
- Run Executions to complete tasks
Next Steps
Now that you understand the core concepts, you can: