Skip to main content
POST
Create Agent Endpoint

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
agent_name
string
required

Name of the agent

Example:

"Customer Support Agent"

agent_description
string
required

Description of the agent

Example:

"An agent designed to handle customer support queries"

model
string
required

Base model identifier

Example:

"nugen-flash-instruct"

max_tokens
integer | null
default:500

Maximum number of tokens to generate in the response

Example:

500

temperature
number
default:0.7

Temperature for model responses (0.0-2.0)

Required range: 0 <= x <= 2
Example:

0.7

instructions
string | null

System prompt for the agent (optional, defaults to 'You are a helpful AI assistant.')

Example:

"You are a helpful customer support assistant."

demonstrations
Demonstrations · object[] | null

Training demonstrations

Response

Returns the details of the newly created agent including its unique identifier, configuration, usage statistics, and endpoint URL for execution

Response model for agent creation endpoint.

data
AgentInfo · object
required