ApiAgent memories
Create a new memory for an agent.
Persists a new memory the agent can recall in later executions. Requires the Editor collaborator role. Returns 201 with a `Location` header pointing at the created memory, 400 when the payload is invalid, and 409 when a memory with the same title already exists for the agent.
Authorization
Bearer AuthorizationBearer <token>
JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
agent*string
The unique identifier of the agent.
tenant*string
The tenant identifier
The memory's title, content, and optional tags.
title*string
Length
1 <= length <= 255content*string
Length
1 <= length <= 10000tags?|null
[key: string]?never
Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/agents/string/memories" \ -H "Content-Type: application/json" \ -d '{ "title": "string", "content": "string" }'{
"id": "00000000-0000-0000-0000-000000000000",
"title": "string",
"content": "string",
"tags": [
"string"
],
"createdAt": 0,
"modifiedAt": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Empty
Empty
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}