provider Assistants GET /threads/{thread_id}/runs/{run_id}/steps/{step_id}
@utdk/openai /threads/{thread_id}/runs/{run_id}/steps/{step_id}
Retrieves a run step.
thread_id path required
The ID of the thread to which the run and run step belongs.
string
run_id path required
The ID of the run to which the run step belongs.
string
step_id path required
The ID of the run step to retrieve.
string
include[] query
A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.
array

Try it

Authentication
Configure credentials for OpenAI API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getrunstep
GET/threads/{thread_id}/runs/{run_id}/steps/{step_id}

Parameters

required

The ID of the thread to which the run and run step belongs.

required

The ID of the run to which the run step belongs.

required

The ID of the run step to retrieve.

A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import openai from '@utdk/openai';

await openai.getrunstep()