Get Segwise Query
get_segwise_queryWait for and retrieve a Segwise query started by start_segwise_query. Pass the returned job_id unchanged. This call waits for up to 25 seconds for the query to finish; if status is still running, call it again. Queries can take several minutes and many status checks. A running status means the query is still executing, not that it failed or has no data. Keep calling get_segwise_query with the exact same job_id, respecting poll_after_seconds. Do not start a duplicate query or stop because repeated checks return running. Give brief progress updates while continuing to poll; do not finish with a still-running answer while polling remains available. Stop polling on completed, failed, execution_deadline, an unrecoverable error, or user cancellation. Retry transient status-check errors with bounded backoff and honor retry delays; do not retry authentication or permission failures. If the host prevents further execution, distinguish that interruption from query failure and preserve the job_id for resumption. When status is completed, use the nested result as the answer. Preserve the exact conversation_id and organization_id for follow-ups in the original user's conversation. If delegated, return both IDs unchanged to the parent with the answer and tell it to pass them into later start_segwise_query calls; do not reset merely because a new child agent or subprocess handles the follow-up. Jobs are temporary and may be interrupted by a service restart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Exact job_id returned by start_segwise_query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| job_id | Yes | ||
| result | No | ||
| status | Yes | Running means keep polling the same job. Completed and failed are terminal statuses. | |
| message | No | Guidance for continuing this running query. Absent for terminal results. | |
| next_action | No | Tool to call next with the same job_id when running. Absent for terminal results. | |
| organization_id | Yes | ||
| organization_name | Yes | ||
| execution_deadline | Yes | Absolute RFC3339 execution deadline set when this query started. Polling does not extend it. Completed results remain retrievable within the result retention window. | |
| poll_after_seconds | No | Minimum delay in seconds before the next get_segwise_query call when running. |