ApiAgent memories
Create Memory
Save a memory by hand.
Save a memory by hand.
Workspace-scoped memories apply to every agent; agent-scoped memories apply to one. Use this to seed memory items directly rather than waiting for agents to accumulate them.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Header Parameters
X-API-Key?string|null
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.levainlabs.com/api/v1/agent-memories" \ -H "Content-Type: application/json" \ -d '{ "content": "string" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
"kind": "semantic",
"content": "string",
"tags": [
"string"
],
"author": "agent",
"source_session_id": "312bde73-ab6c-4229-8af2-a9c9ab28d2bf",
"source_run_id": "51116a97-0041-4601-85fc-eb599c2885fb",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}