Skip to main content

kobana kadu memories

Commands of kobana kadu memories. Every global option (Global options) applies here.

CommandHTTPDescription
memories listGET /v1/memoriesList memories
memories createPOST /v1/memoriesCreate memory
memories consolidatePOST /v1/memories/consolidateConsolidates the memories of a period
memories getGET /v1/memories/{id}Get memory details
memories updatePATCH /v1/memories/{id}Update memory
memories deleteDELETE /v1/memories/{id}Delete memory (soft delete)
memories rollbackPOST /v1/memories/{id}/rollbackRolls the memory back to a version
memories versionsGET /v1/memories/{id}/versionsLists the memory versions

memories list​

List memories

kobana kadu memories list [OPTIONS]

GET /v1/memories

Query parameters

NameTypeRequiredDescription
cursorstringno
limitnumberno
sort_bystringnoField in snake_case: created_at (default), updated_at or a filterable field.
sort_orderstringnoDefault: desc. Values: asc, desc.

Responses

HTTPDescription
200OK
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

memories create​

Create memory

kobana kadu memories create [OPTIONS]

POST /v1/memories

Request body

NameTypeRequiredDescription
contentstringyes
workspace_idstring (uuid)no
activity_idstring (uuid)no
entity_typestringno
entity_valuestringno
keystringno
summarystringno
statusstringno
external_idstringno
custom_metadataobjectno

More fields and nested objects: kobana schema kadu.memories.create.

Responses

HTTPDescription
201created
400VALIDATION_ERROR
409CONFLICT (duplicate external_id in the organization) / IDEMPOTENCY_KEY_REUSED
422VALIDATION_ERROR β€” workspace/activity outside the organization
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

memories consolidate​

Consolidates the memories of a period

kobana kadu memories consolidate [OPTIONS]

POST /v1/memories/consolidate

Reads the finished executions (success/failed) of the period not consolidated yet β€” including tasks with memories off β€” and saves the durable facts as memories, in each Task's scope. Each execution is a model call charged to the organization. dry_run: true returns only the preview. Asynchronous: memories show up as the jobs run.

Request body

NameTypeRequiredDescription
fromstringyesFirst day (YYYY-MM-DD, UTC), inclusive.
tostringyesLast day (YYYY-MM-DD, UTC), inclusive. Up to 366 days.
task_idstring (uuid)noOnly this Task's executions.
dry_runbooleanno

More fields and nested objects: kobana schema kadu.memories.consolidate.

Responses

HTTPDescription
200preview (dry_run)
202queued
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
422VALIDATION_ERROR β€” invalid period or Task
503SERVICE_UNAVAILABLE β€” queue unavailable

memories get​

Get memory details

kobana kadu memories get [ID] [OPTIONS]

GET /v1/memories/{id}

Path arguments: id

Responses

HTTPDescription
200OK
404not found
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

memories update​

Update memory

kobana kadu memories update [ID] [OPTIONS]

PATCH /v1/memories/{id}

Path arguments: id

Request body

NameTypeRequiredDescription
contentstringno
workspace_idstring (uuid)no
activity_idstring (uuid)no
entity_typestringno
entity_valuestringno
keystringno
summarystringno
statusstringno
custom_metadataobjectno

More fields and nested objects: kobana schema kadu.memories.update.

Responses

HTTPDescription
200OK
404NOT_FOUND
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
422VALIDATION_ERROR β€” workspace/activity outside the organization
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

memories delete​

Delete memory (soft delete)

kobana kadu memories delete [ID] [OPTIONS]

DELETE /v1/memories/{id}

Requires the delete level (or all): write does not delete.

Path arguments: id

Responses

HTTPDescription
200OK
404not found
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

memories rollback​

Rolls the memory back to a version

kobana kadu memories rollback [ID] [OPTIONS]

POST /v1/memories/{id}/rollback

Saves a NEW version with the chosen one's content, which becomes current; the history stays whole (rollback_from).

Path arguments: id

Request body

NameTypeRequiredDescription
versionintegeryes

More fields and nested objects: kobana schema kadu.memories.rollback.

Responses

HTTPDescription
200OK
404NOT_FOUND (memory or version)
409CONFLICT β€” already the current version / IDEMPOTENCY_KEY_REUSED
422VALIDATION_ERROR β€” the version's workspace/activity is no longer valid
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

memories versions​

Lists the memory versions

kobana kadu memories versions [ID] [OPTIONS]

GET /v1/memories/{id}/versions

Newest first. Every content change (by the API, the agent, consolidation or the console) saves a version; current: true marks the one in force.

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).