Create an agent and define, model and its parameters.
Please see the list of supported models for the model parameter above.
model
Last updated 1 year ago
A list of agents
const response = await fetch('https://www.openindex.ai/api/agents', { method: 'GET', headers: {}, }); const data = await response.json();
{ "ok": false, "agents": [ { "id": "text", "slug": "text", "name": "text", "description": "text", "image": "text", "privacy": "text", "namespace": "text", "prompt": "text", "isAutonomous": false, "welcome": "text", "model": "gpt-3.5-turbo", "params": { "temperature": 0, "topP": 0, "frequencePenalty": 0, "presencePenalty": 0 }, "tools": [ { "id": "text", "checked": false } ], "userId": "text", "createdAt": 0, "updatedAt": 0, "status": "text", "collections": [ "text" ] } ] }
Name of the LLM model to use.
Model parameters
The result of the agent creation or update.
const response = await fetch('https://www.openindex.ai/api/agents', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "ok": false, "agentId": "text" }