Skip to main content
The Julep SDKs provide powerful interfaces to interact with Julep’s AI agent platform. These SDKs allow you to create, manage, and execute AI agents, tasks, and sessions directly from your applications.

Installation

# Install using pip
pip install julep-sdk

# Or using poetry
poetry add julep-sdk

Basic Usage

from julep import Julep

# Initialize the client
client = Julep(
    api_key='your_api_key',
    environment='production'  # or 'development'
)

# Create an agent
agent = client.agents.create(
    name='My First Agent',
    model='claude-3.5-sonnet',
    about='A helpful AI assistant'
)

# Create a task
task = client.tasks.create(
    agent_id=agent.id,
    name='Simple Task',
    description='A basic task example',
    main=[
        {
            'prompt': 'Hello! How can I help you today?'
        }
    ]
)

# Execute the task
execution = client.executions.create(task_id=task.id)

Features

  • Comprehensive API Coverage: Access all Julep platform features
  • Type Safety: Built with TypeScript (Node.js) and type hints (Python)
  • Modern Async Support: Promise-based interface in Node.js and optional async support in Python
  • Error Handling: Detailed error information and handling
  • Automatic Retries: Built-in retry mechanism for failed requests

SDK Documentation

Python SDK

Get started with the Python SDK

Node.js SDK

Get started with the Node.js SDK

Core Components

Python SDK

Agents

Learn how to create and manage AI agents with Python

Tasks

Create and execute complex AI workflows in Python

Sessions

Manage stateful conversations with agents using Python

Tools & Integration

Extend your agents with tools and integrations in Python

Agents

Learn how to create and manage AI agents with Node.js

Tasks

Create and execute complex AI workflows in Node.js

Sessions

Manage stateful conversations with agents using Node.js

Tools & Integration

Extend your agents with tools and integrations in Node.js

Additional Resources

API Reference

Complete API reference documentation

Examples

Sample code and use cases

Best Practices

Learn advanced patterns and best practices