CLI
tai states
Manage the subject-keyed state store.
Manage the subject-keyed state store.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Manage the subject-keyed state store.
$ tai states [OPTIONS] COMMAND [ARGS]...
tai states apply$ tai states apply [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--target-kind <str> | The subject’s conversation-target kind (agent/tool). (required) |
--target-name <str> | The subject’s conversation-target name. (required) |
--kind <str> | The subject kind (e.g. person, thread). (required) |
--key <str> | The subject key within its kind. (required) |
--data <str> | A JSON array of ops (or {ops, op_id}). |
--file <path> | A file holding the ops JSON. |
--op-id <str> | An idempotency key for the batch. |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states attach$ tai states attach [OPTIONS] {name} {template}
| Argument | Description |
|---|---|
name | The state name. (required) |
template | The template name. (required) |
| Option | Description |
|---|---|
--data <str> | The attach body JSON (path/parameters/declarations). |
--file <path> | A file holding the attach body JSON. |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states attachments$ tai states attachments [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--json / --no-json | Emit raw JSON instead of human tables. |
tai states consumers$ tai states consumers [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--json / --no-json | Emit raw JSON instead of human tables. |
tai states delete$ tai states delete [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--json / --no-json | Emit raw JSON instead of human tables. |
tai states detach$ tai states detach [OPTIONS] {name} {template}
| Argument | Description |
|---|---|
name | The state name. (required) |
template | The template name. (required) |
| Option | Description |
|---|---|
--json / --no-json | Emit raw JSON instead of human tables. |
tai states erase$ tai states erase [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--target-kind <str> | The subject’s conversation-target kind (agent/tool). (required) |
--target-name <str> | The subject’s conversation-target name. (required) |
--kind <str> | The subject kind (e.g. person, thread). (required) |
--key <str> | The subject key within its kind. (required) |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states fold$ tai states fold [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--target-kind <str> | The subject’s conversation-target kind (agent/tool). (required) |
--target-name <str> | The subject’s conversation-target name. (required) |
--kind <str> | The subject kind (e.g. person, thread). (required) |
--key <str> | The subject key within its kind. (required) |
--into <str> | The canonical subject JSON {target_kind,target_name,kind,key}. (required) |
--mode <str> | The fold mode. (required) |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states get$ tai states get [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--json / --no-json | Emit raw JSON instead of human tables. |
tai states get-attachment$ tai states get-attachment [OPTIONS] {name} {template}
| Argument | Description |
|---|---|
name | The state name. (required) |
template | The template name. (required) |
| Option | Description |
|---|---|
--json / --no-json | Emit raw JSON instead of human tables. |
tai states list$ tai states list [OPTIONS]
| Option | Description |
|---|---|
--json / --no-json | Emit raw JSON instead of human tables. |
tai states merge$ tai states merge [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--target-kind <str> | The subject’s conversation-target kind (agent/tool). (required) |
--target-name <str> | The subject’s conversation-target name. (required) |
--kind <str> | The subject kind (e.g. person, thread). (required) |
--key <str> | The subject key within its kind. (required) |
--data <str> | The patch JSON. |
--file <path> | A file holding the patch JSON. |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states prune$ tai states prune [OPTIONS]
| Option | Description |
|---|---|
--json / --no-json | Emit raw JSON instead of human tables. |
tai states put$ tai states put [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--data <str> | The declaration JSON object. |
--file <path> | A file holding the declaration JSON. |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states read$ tai states read [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--target-kind <str> | The subject’s conversation-target kind (agent/tool). (required) |
--target-name <str> | The subject’s conversation-target name. (required) |
--kind <str> | The subject kind (e.g. person, thread). (required) |
--key <str> | The subject key within its kind. (required) |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states replace$ tai states replace [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--target-kind <str> | The subject’s conversation-target kind (agent/tool). (required) |
--target-name <str> | The subject’s conversation-target name. (required) |
--kind <str> | The subject kind (e.g. person, thread). (required) |
--key <str> | The subject key within its kind. (required) |
--data <str> | The document JSON. |
--file <path> | A file holding the document JSON. |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states search$ tai states search [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--filters <str> | A JSON object the record document must contain. (required) |
--limit <int> | Page size. |
--cursor <str> | A keyset cursor from a prior page. |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states stats$ tai states stats [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--json / --no-json | Emit raw JSON instead of human tables. |
tai states subjects$ tai states subjects [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--kind <str> | Restrict to one subject kind. |
--limit <int> | Page size. |
--cursor <str> | A keyset cursor from a prior page. |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states template-jq$ tai states template-jq [OPTIONS] COMMAND [ARGS]...
tai states template-jq apply$ tai states template-jq apply [OPTIONS] {name} {program}
| Argument | Description |
|---|---|
name | The state name. (required) |
program | The template_jq program name (or <template>.<name>). (required) |
| Option | Description |
|---|---|
--target-kind <str> | The subject’s conversation-target kind (agent/tool). (required) |
--target-name <str> | The subject’s conversation-target name. (required) |
--kind <str> | The subject kind (e.g. person, thread). (required) |
--key <str> | The subject key within its kind. (required) |
--input <str> | The program’s input as JSON, or @<file> to read it from a file. |
--op-id <str> | An idempotency key for the apply. |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states template-jq eval$ tai states template-jq eval [OPTIONS] {name} {program}
| Argument | Description |
|---|---|
name | The state name. (required) |
program | The template_jq program name (or <template>.<name>). (required) |
| Option | Description |
|---|---|
--target-kind <str> | The subject’s conversation-target kind (agent/tool). (required) |
--target-name <str> | The subject’s conversation-target name. (required) |
--kind <str> | The subject kind (e.g. person, thread). (required) |
--key <str> | The subject key within its kind. (required) |
--param <str> | An input-program parameter as key=<json> (repeatable). |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states update-attachment$ tai states update-attachment [OPTIONS] {name} {template}
| Argument | Description |
|---|---|
name | The state name. (required) |
template | The template name. (required) |
| Option | Description |
|---|---|
--declarations <str> | The attachment declaration values JSON object. (required) |
--options <str> | The reconcile options JSON object passed to attach reconcilers. |
--json / --no-json | Emit raw JSON instead of human tables. |
tai states writes$ tai states writes [OPTIONS] {name}
| Argument | Description |
|---|---|
name | The state name. (required) |
| Option | Description |
|---|---|
--target-kind <str> | The subject’s conversation-target kind (agent/tool). (required) |
--target-name <str> | The subject’s conversation-target name. (required) |
--kind <str> | The subject kind (e.g. person, thread). (required) |
--key <str> | The subject key within its kind. (required) |
--limit <int> | Page size. |
--cursor <str> | A keyset cursor from a prior page. |
--json / --no-json | Emit raw JSON instead of human tables. |
