thread_and_runs
Creates, updates, deletes, gets or lists a thread_and_runs resource.
Overview
| Name | thread_and_runs |
| Type | Resource |
| Id | azure.ai_agents.thread_and_runs |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_thread_and_run | insert | endpoint | Creates a new agent thread and immediately starts a run using that new thread. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: ) |
INSERT examples
- create_thread_and_run
- Manifest
Creates a new agent thread and immediately starts a run using that new thread.
INSERT INTO azure.ai_agents.thread_and_runs (
endpoint
)
SELECT
'{{ endpoint }}'
RETURNING
id,
assistant_id,
thread_id,
cancelled_at,
completed_at,
created_at,
expires_at,
failed_at,
incomplete_details,
instructions,
last_error,
max_completion_tokens,
max_prompt_tokens,
metadata,
model,
object,
parallel_tool_calls,
required_action,
response_format,
started_at,
status,
temperature,
tool_choice,
tool_resources,
tools,
top_p,
truncation_strategy,
usage
;
# Description fields are for documentation purposes
- name: thread_and_runs
props:
- name: endpoint
value: "{{ endpoint }}"
description: Required parameter for the thread_and_runs resource.