Agents
/agents
Create new agent.
POST
/
api
/
v1
/
agents
Copy
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,
}'
Copy
{
"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
}
}
Body
A name for the agent
The agent type, valid values: OPENAI
, REACT
The large language model you want to use with the agent.
If the agent should have memory
A valid promptId
An array of valid tag
objects
Response
Indicates whether the call was successful.
Agent object
Copy
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,
}'
Copy
{
"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
}
}
Copy
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,
}'
Copy
{
"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
}
}
Assistant
Responses are generated using AI and may contain mistakes.