Create AI Agent
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/agents';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Code Review Assistant","description":"Reviews code for security vulnerabilities and best practices","group":"development","systemPrompt":"You are a senior software engineer specializing in secure code review.","temperature":0.3,"modelId":"anthropic.claude-3-5-sonnet-20241022-v2:0","maxTokens":4000,"allowedTools":["fetch_web_content","search_web"],"allowedCollections":["example"],"assignedSkills":["example"],"createdBy":"example","longContext":true,"guardrailPreset":"official","filterPolicies":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/agents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Code Review Assistant", "description": "Reviews code for security vulnerabilities and best practices", "group": "development", "systemPrompt": "You are a senior software engineer specializing in secure code review.", "temperature": 0.3, "modelId": "anthropic.claude-3-5-sonnet-20241022-v2:0", "maxTokens": 4000, "allowedTools": [ "fetch_web_content", "search_web" ], "allowedCollections": [ "example" ], "assignedSkills": [ "example" ], "createdBy": "example", "longContext": true, "guardrailPreset": "official", "filterPolicies": [ "example" ] }'Creates a new AI agent with specific configuration, system prompt, and tool permissions. * * Agent Configuration: * - System Prompt: Instructions that guide the agent’s behavior * - Model: Which foundation model to use (e.g., ‘amazon.nova-pro-v1:0’) * - Temperature: Creativity level (0-1) * - Allowed Tools: Which tools the agent can auto-execute * - Allowed Collections: Vector DB collections for RAG * - Group: Optional categorization (e.g., ‘development’, ‘compliance’) * * Auto-Execution: * All tools are automatically executed when an agent requests them (no client confirmation needed).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
Code Review AssistantExample
Reviews code for security vulnerabilities and best practicesExample
developmentExample
You are a senior software engineer specializing in secure code review.Example
0.3Example
anthropic.claude-3-5-sonnet-20241022-v2:0Example
4000Example
[ "fetch_web_content", "search_web"]Skill IDs to assign to this agent
User identifier who created the agent
Enable 1M context window support
Guardrail preset name
Filter policy IDs to apply to this agent’s inference requests
Responses
Section titled “Responses”Agent created successfully
object
object
Example
{ "success": true, "message": "Agent created successfully"}Invalid request parameters
Access denied
Failed to create agent
