NAME

OpenAPI::Client::OpenAI::Path::threads-thread_id-runs-run_id-steps-step_id - Documentation for the /threads/{thread_id}/runs/{run_id}/steps/{step_id} path.

DESCRIPTION

This document describes the API endpoint at /threads/{thread_id}/runs/{run_id}/steps/{step_id}.

See the examples/ directory in the distribution for examples of how to use this.

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

Retrieves a run step.

Operation ID

getRunStep

$client->getRunStep( ... );

Parameters

  • thread_id (in path) (Required) - The ID of the thread to which the run and run step belongs. Type: string

  • run_id (in path) (Required) - The ID of the run to which the run step belongs. Type: string

  • step_id (in path) (Required) - The ID of the run step to retrieve. Type: string

  • include[] (in query) (Optional) - 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.

    Type: array

Responses

Status Code: 200

OK

Content Types:

  • application/json

    Example:

    {
       "usage" : null,
       "last_error" : null
    }

SEE ALSO

OpenAPI::Client::OpenAI::Path

COPYRIGHT AND LICENSE

Copyright (C) 2023-2025 by Nelson Ferraz

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.0 or, at your option, any later version of Perl 5 you may have available.