curl --request POST \
--url http://localhost:3000/api/agents \
--header 'Content-Type: application/json' \
--data '{
"characterPath": "<string>",
"characterJson": {}
}'
{
"success": true,
"data": {
"character": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"bio": "<string>",
"settings": {},
"system": "<string>",
"style": {},
"lore": [
"<string>"
],
"messageExamples": [
"<string>"
],
"topics": [
"<string>"
],
"plugins": [
"<string>"
]
}
}
}
Creates a new agent from character configuration
curl --request POST \
--url http://localhost:3000/api/agents \
--header 'Content-Type: application/json' \
--data '{
"characterPath": "<string>",
"characterJson": {}
}'
{
"success": true,
"data": {
"character": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"bio": "<string>",
"settings": {},
"system": "<string>",
"style": {},
"lore": [
"<string>"
],
"messageExamples": [
"<string>"
],
"topics": [
"<string>"
],
"plugins": [
"<string>"
]
}
}
}
Agent created successfully
The response is of type object
.
Was this page helpful?