brackets-curlyRuns

API Reference

列出所有线程运行。

get

返回线程运行列表,代表线程内的单独执行或交互。

路径参数
threadIdstring必填
响应
get
/threads/{threadId}/runs
201成功

创建新的线程运行。

post

创建一个新的线程运行,在线程上下文中执行任务或交互。

路径参数
threadIdstring必填
请求体
assistant_idstring必填
streamboolean可选
metadataobject可选
响应
post
/threads/{threadId}/runs
201成功

Update a thread run’s details.

post

Updates the details of a thread run, modifying its status or context.

路径参数
threadIdstring必填
runIdstring必填
请求体
metadataobject可选
响应
chevron-right
200成功
application/json
idstring必填
assistant_idstring必填
cancelled_atnumber · 可为 null必填
completed_atnumber · 可为 null必填
created_atnumber必填
expires_atnumber · 可为 null必填
failed_atnumber · 可为 null必填
instructionsstring必填
max_completion_tokensnumber · 可为 null必填
max_prompt_tokensnumber · 可为 null必填
metadataany · 可为 null可选
modelstring必填
objectstring · enum必填可能的值:
parallel_tool_callsboolean必填
response_formatany · 可为 null可选
started_atnumber · 可为 null必填
statusstring · enum必填可能的值:
thread_idstring必填
tool_choiceany · 可为 null可选
temperaturenumber · 可为 null可选
top_pnumber · 可为 null可选
post
/threads/{threadId}/runs/{runId}
200成功

Get details of a specific thread run.

get

Retrieves a single thread run by its ID, providing access to its execution details.

路径参数
threadIdstring必填
runIdstring必填
响应
chevron-right
200成功
application/json
idstring必填
assistant_idstring必填
cancelled_atnumber · 可为 null必填
completed_atnumber · 可为 null必填
created_atnumber必填
expires_atnumber · 可为 null必填
failed_atnumber · 可为 null必填
instructionsstring必填
max_completion_tokensnumber · 可为 null必填
max_prompt_tokensnumber · 可为 null必填
metadataany · 可为 null可选
modelstring必填
objectstring · enum必填可能的值:
parallel_tool_callsboolean必填
response_formatany · 可为 null可选
started_atnumber · 可为 null必填
statusstring · enum必填可能的值:
thread_idstring必填
tool_choiceany · 可为 null可选
temperaturenumber · 可为 null可选
top_pnumber · 可为 null可选
get
/threads/{threadId}/runs/{runId}
200成功

最后更新于