You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ $ agents apply -y
131
131
132
132
## Run a session
133
133
134
-
A **session** is a runtime conversation started from a managed agent. `agents session run` creates a session, sends a prompt, and streams the response:
134
+
A **session** is a runtime conversation started from a managed agent. `agents session run` creates a session, sends a prompt, and polls until the response completes. Add `--stream` to stream live events over SSE:
135
135
136
136
```bash
137
137
agents session run "Summarize the repo structure" --agent assistant
Copy file name to clipboardExpand all lines: docs/guides/run-sessions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ A **session** is a runtime conversation started from a managed agent. Sessions a
12
12
agents session run "Summarize the repo structure" --agent assistant
13
13
```
14
14
15
-
`session run` creates a session, sends the prompt, and streams the response. When only one agent is configured, `--agent` is auto-detected. For a Qoder agent with `delivery.qoder.type: forward`, Identity is optional: without one OpenCMA looks up the enabled Identity whose `external_id` is `__qca_admin_identity__` and sends its real `idn_...` id. Configure `defaults.session.qoder.identity_id` or pass `--identity-id` to select an existing business Identity. OpenCMA never creates or updates Identity resources implicitly.
15
+
`session run` creates a session, sends the prompt, and polls until the response completes. Pass `--stream` to receive live events over SSE. When only one agent is configured, `--agent` is auto-detected. For a Qoder agent with `delivery.qoder.type: forward`, Identity is optional: without one OpenCMA looks up the enabled Identity whose `external_id` is `__qca_admin_identity__` and sends its real `idn_...` id. Configure `defaults.session.qoder.identity_id` or pass `--identity-id` to select an existing business Identity. OpenCMA never creates or updates Identity resources implicitly.
16
16
17
17
Options:
18
18
@@ -26,7 +26,7 @@ Options:
26
26
|`--title <title>`| Session title. |
27
27
|`--provider <name>`| Target provider (required for multi-provider agents). |
28
28
|`--json`| Output events as JSONL. |
29
-
|`--no-stream`| Use polling instead of SSE streaming. |
29
+
|`--stream`| Use SSE streaming instead of the default polling mode. |
|`session create [agent-name]`| Create a new session. |
107
107
|`session list`| List sessions from the provider. |
108
108
|`session get <session-id>`| Get details of a session. |
109
-
|`session run <prompt-or-agent> [prompt]`| Create a session, send a message, and stream the response. |
110
-
|`session send <session-id> <message>`| Send a message to an existing session and stream the response. |
109
+
|`session run <prompt-or-agent> [prompt]`| Create a session, send a message, and poll until the response completes. |
110
+
|`session send <session-id> <message>`| Send a message to an existing session and poll until the response completes. |
111
111
|`session events <session-id>`| List event history for a session. |
112
112
|`session delete <session-id>`| Delete a session. |
113
113
114
-
`session create` / `session run` accept `--agent`, `--identity-id`, `--environment`, `--vault`, `--memory-stores`, `--title`, and `--provider`. `--identity-id` selects an existing Qoder Forward Identity and overrides `defaults.session.qoder.identity_id`; when neither is provided, OpenCMA resolves the Identity whose `external_id` is `__qca_admin_identity__`. OpenCMA never creates or updates an Identity. `session run` and `session send` accept `--json` (JSONL output) and `--no-stream` (polling instead of SSE). `session list` accepts `--agent` and `--all`; `session events` accepts `--limit`, `--all`, `--json`.
114
+
`session create` / `session run` accept `--agent`, `--identity-id`, `--environment`, `--vault`, `--memory-stores`, `--title`, and `--provider`. `--identity-id` selects an existing Qoder Forward Identity and overrides `defaults.session.qoder.identity_id`; when neither is provided, OpenCMA resolves the Identity whose `external_id` is `__qca_admin_identity__`. OpenCMA never creates or updates an Identity. `session run` and `session send`use polling by default and accept `--stream` to opt into SSE streaming, plus `--json` for JSON output. `session list` accepts `--agent` and `--all`; `session events` accepts `--limit`, `--all`, `--json`.
0 commit comments