Body
The agent type, valid values: OPENAI
, REACT
The large language model you want to use with the agent.
The LLM provider, options: openai
, openai-chat
, anthropic
, cohere
The specific model you want to run, e.g gpt-3.5-turbo
, gpt-4
,
‘claude-v1` etc.
Enter an optional API key if you want to use your own account for the
specific LLM provider.
If the agent should have memory
An array of valid tag
objects
Response
Indicates whether the call was successful.
curl --location --request POST 'https://api.rapidagent.ai/api/v1/agents' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
--data-raw '{
"name": "My agent",
"type": "OPENAI",
"llm": {
"model": "openai-chat",
"provider": "gpt-3.5-turbo"
}
"hasMemory": true,
}'
{
"success": true,
"data": {
"id": "clhjk4hab00016iewrghkbs28",
"userId": "clhj28u1300006ig02ptpm1sh",
"user": {},
"name": "Test Agent",
"type": "REACT",
"tags": [],
"llm": {
"model": "gpt-3.5-turbo",
"provider": "openai-chat"
},
"hasMemory": true,
"AgentMemory": null
}
}