Skip to main content
POST
/
api
/
agent-server
/
agents
Create a new agent
curl --request POST \
  --url http://localhost:6060/api/agent-server/agents \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "prompt_label": "production",
  "schema_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "enable_history": true,
  "summarizer_type": "llm",
  "llm_summarizer_token_threshold": 123,
  "llm_summarizer_keep_recent_count": 123,
  "llm_summarizer_prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "llm_summarizer_prompt_label": "production",
  "llm_summarizer_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sliding_window_keep_count": 123,
  "mcp_servers": [
    {
      "mcp_server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "tool_filters": [
        "<string>"
      ]
    }
  ]
}
'
{
  "error": true,
  "message": "<string>",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "prompt_label": "<string>",
    "schema_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "enable_history": true,
    "summarizer_type": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "status": 123,
  "errorDetails": {}
}

Query Parameters

project_id
string<uuid>
required

Body

application/json
name
string
required
model_id
string<uuid>
required
prompt_id
string<uuid>
required
prompt_label
enum<string>
Available options:
production,
latest
schema_id
string<uuid> | null
enable_history
boolean
summarizer_type
enum<string>
Available options:
llm,
sliding_window,
none
llm_summarizer_token_threshold
integer
llm_summarizer_keep_recent_count
integer
llm_summarizer_prompt_id
string<uuid>
llm_summarizer_prompt_label
enum<string>
Available options:
production,
latest
llm_summarizer_model_id
string<uuid>
sliding_window_keep_count
integer
mcp_servers
object[]

Response

Agent created successfully

error
boolean
message
string
data
object
status
integer
errorDetails
object