Quick Start Guide
Get your first AI agent running in under 5 minutes with the Rodger SDK.
1
Install the SDK
Install the Rodger SDK using your preferred package manager:
Package Installation
# Using npm
npm install @rodger-ai/sdk
# Using yarn
yarn add @rodger-ai/sdk
# Using pnpm
pnpm add @rodger-ai/sdk2
Get Your API Key
Generate an API key from the developer portal to authenticate your requests:
3
Initialize the Client
Create a Rodger client instance with your API key:
Client Initialization
import { RodgerClient } from '@rodger-ai/sdk';
const client = new RodgerClient({
apiKey: process.env.RODGER_API_KEY, // Your API key
apiUrl: 'https://api.rodger.ai', // Production API
debug: false // Set to true for development
});4
Create Your First Agent
Create an AI agent using the Core API:
Agent Creation
// Create an agent with Core API
const agent = await client.createPersona({
name: 'Customer Support Assistant',
instructions: 'You are a helpful customer support agent. Be friendly and professional.',
traits: ['helpful', 'patient', 'professional'],
guardrails: ['no_personal_info', 'stay_on_topic'],
model: 'gpt-4'
});
console.log('Agent created:', agent.id);5
Send Your First Query
Test your agent by sending a query:
First Query
// Send a query to your agent
const response = await client.query(agent.id, {
message: 'Hello! How can you help me today?',
sessionId: 'user-session-123' // Optional: for conversation continuity
});
console.log('Agent response:', response.message);Next Steps
Need Help?
If you run into any issues or have questions, check out these resources: