Skip to main content
PATCH
/
api
/
v3
/
agents
/
{agent_id}
Update Agent Endpoint
curl --request PATCH \
  --url https://api.nugen.in/api/v3/agents/{agent_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_name": "Customer Support Agent",
  "agent_description": "An agent designed to handle customer support queries",
  "model": "nugen-flash-instruct",
  "max_token": 1000,
  "temperature": 0.7,
  "instructions": "You are a helpful customer support assistant.",
  "demonstrations": [
    {}
  ]
}
'
{
  "data": {
    "id": "agent-12345",
    "name": "Customer Support Agent",
    "description": "An agent designed to handle customer support queries",
    "base_model": "nugen-flash-instruct",
    "base_model_name": "Nugen Flash Instruct",
    "created_date": "2024-01-15T10:30:00Z",
    "status": "active",
    "creator": "youremail@domain.com",
    "endpoint": "https://api.nugen.in/api/v3/inference/completions/agent-12345",
    "usage_count": 150,
    "performance_metrics": {
      "average_uncertainty": 0.15,
      "human_interventions": 5,
      "average_response_time": 1.2,
      "user_satisfaction_score": 0.85
    },
    "system_prompt": "You are a helpful customer support assistant.",
    "uncertainty_threshold": 0.7,
    "last_used": "2024-01-20T14:30:00Z",
    "conversation_saving_enabled": true
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agent_id
string
required

Body

application/json
agent_name
string | null

Name of the agent

Example:

"Customer Support Agent"

agent_description
string | null

Description of the agent

Example:

"An agent designed to handle customer support queries"

model
string | null

Base model identifier

Example:

"nugen-flash-instruct"

max_token
integer | null

max token for inference request

Example:

1000

temperature
number | null

Temperature for model responses

Example:

0.7

instructions
string | null

System prompt for the agent

Example:

"You are a helpful customer support assistant."

demonstrations
Demonstrations · object[] | null

Training demonstrations

Response

Returns the updated details of the agent after applying the requested configuration changes

data
AgentInfo · object
required