=encoding utf8

=head1 NAME

OpenAPI::Client::OpenAI::Path::responses-response_id-input_items - Documentation for the /responses/{response_id}/input_items path.

=head1 DESCRIPTION

This document describes the API endpoint at C</responses/{response_id}/input_items>.

=head1 PATHS


=head2 C<GET /responses/{response_id}/input_items>

List input items


Returns a list of input items for a given response.



=head3 Operation ID

C<listInputItems>

    $client->listInputItems( ... );

=head3 Parameters

=over 4

=item * C<response_id> (in path) (Required) - The ID of the response to retrieve input items for.

Type: C<string>



=item * C<limit> (in query) (Optional) - A limit on the number of objects to be returned. Limit can range between
1 and 100, and the default is 20.


Type: C<integer>


Default: C<20>


=item * C<order> (in query) (Optional) - The order to return the input items in. Default is `desc`.
- `asc`: Return the input items in ascending order.
- `desc`: Return the input items in descending order.


Type: C<string>

Allowed values: C<asc, desc>



=item * C<after> (in query) (Optional) - An item ID to list items after, used in pagination.


Type: C<string>



=item * C<include> (in query) (Optional) - Additional fields to include in the response. See the `include`
parameter for Response creation above for more information.


Type: C<array>



=back


=head3 Responses


=head4 Status Code: C<200>

OK


=head4 Content Types:

=over 4


=item * C<application/json>

Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/master/openapi.yaml>):

    {
      "object": "list",
      "data": [
        {
          "id": "msg_abc123",
          "type": "message",
          "role": "user",
          "content": [
            {
              "type": "input_text",
              "text": "Tell me a three sentence bedtime story about a unicorn."
            }
          ]
        }
      ],
      "first_id": "msg_abc123",
      "last_id": "msg_abc123",
      "has_more": false
    }


=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