Skip to main content

thread_and_runs

Creates, updates, deletes, gets or lists a thread_and_runs resource.

Overview

Namethread_and_runs
TypeResource
Idazure.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:

NameAccessible byRequired ParamsOptional ParamsDescription
create_thread_and_runinsertendpointCreates 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.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )

INSERT examples

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
;