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

Core Components

Additional Resources