Getting started with Julep SDKs for Python and Node.js
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.
from julep import Julep# Initialize the clientclient = Julep( api_key='your_api_key', environment='production' # or 'development')# Create an agentagent = client.agents.create( name='My First Agent', model='claude-3.5-sonnet', about='A helpful AI assistant')# Create a tasktask = 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 taskexecution = client.executions.create(task_id=task.id)