Create an agent and define, model and its parameters.
Last updated 1 year ago
Please see the list of for the model parameter above.
model
GET /api/agents HTTP/1.1 Host: www.openindex.ai Authorization: Bearer JWT Accept: */*
A list of agents
{ "ok": true, "agents": [ { "id": "text", "slug": "text", "name": "text", "description": "text", "image": "text", "privacy": "text", "namespace": "text", "prompt": "text", "isAutonomous": true, "welcome": "text", "model": "gpt-3.5-turbo", "params": { "temperature": 1, "topP": 1, "frequencePenalty": 1, "presencePenalty": 1 }, "tools": [ { "id": "text", "checked": true } ], "userId": "text", "createdAt": 1, "updatedAt": 1, "status": "text", "collections": [ "text" ] } ] }
public
private
team
Name of the LLM model to use.
gpt-3.5-turbo
gpt-3.5-turbo-16k
gpt-4
palm-2
llama-2-13b-chat
llama-2-70b-chat
codellama-13b-instruct
codellama-13b-python
mistral-7b
llava-13b
fuyu-8b
Model parameters
POST /api/agents HTTP/1.1 Host: www.openindex.ai Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 298 { "id": "text", "name": "text", "description": "text", "image": "text", "privacy": "public", "isAutonomous": true, "prompt": "text", "welcome": "text", "model": "gpt-3.5-turbo", "params": { "temperature": 1, "topP": 1, "frequencePenalty": 1, "presencePenalty": 1 }, "tools": [ { "id": "text", "checked": true } ], "collections": [ "text" ] }
The result of the agent creation or update.
{ "ok": true, "agentId": "text" }