curl --location --request POST 'https://api.superagent.sh/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
}
}
Create new agent.
curl --location --request POST 'https://api.superagent.sh/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
}
}
OPENAI
, REACT
promptId
tag
objectscurl --location --request POST 'https://api.superagent.sh/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
}
}