=encoding utf8

=head1 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.

=head1 DESCRIPTION

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

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

=head2 C<GET /threads/{thread_id}/runs/{run_id}/steps/{step_id}>

Retrieves a run step.

=head3 Operation ID

C<getRunStep>

    $client->getRunStep( ... );

=head3 Parameters

=over 4

=item * C<thread_id> (in path) (Required) - The ID of the thread to which the run and run step belongs.
Type: C<string>

=item * C<run_id> (in path) (Required) - The ID of the run to which the run step belongs.
Type: C<string>

=item * C<step_id> (in path) (Required) - The ID of the run step to retrieve.
Type: C<string>

=item * C<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: C<array>


=back


=head3 Responses

=head3 Status Code: C<200>

OK

Content Types:

=over 4

=item * C<application/json>

Example:

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



=back


=head1 SEE ALSO

L<OpenAPI::Client::OpenAI::Path>

=head1 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.

=cut
