GET /sessions/{id} described in the Sessions API reference.
Usage
Options
| Flag | Default | Description |
|---|---|---|
--wait | false | Block until the session is no longer "running" |
--timeout | — | Maximum seconds to wait (only applies with --wait) |
Get details for a session, with optional long-polling.
GET /sessions/{id} described in the Sessions API reference.
motus serve get <url> <id> [options]
| Flag | Default | Description |
|---|---|---|
--wait | false | Block until the session is no longer "running" |
--timeout | — | Maximum seconds to wait (only applies with --wait) |
motus serve get http://localhost:8000 550e8400-e29b-41d4-a716-446655440000
motus serve get http://localhost:8000 550e8400-e29b-41d4-a716-446655440000 --wait --timeout 30
{
"session_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "idle",
"response": { "role": "assistant", "content": "hi there" }
}
Was this page helpful?