Class: OpenAI::Models::Beta::ChatKit::ThreadListItemsParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/openai/models/beta/chatkit/thread_list_items_params.rb

Overview

Defined Under Namespace

Modules: Order

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(after: nil, before: nil, limit: nil, order: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Beta::ChatKit::ThreadListItemsParams for more details.

Parameters:

  • after (String) (defaults to: nil)

    List items created after this thread item ID. Defaults to null for the first pag

  • before (String) (defaults to: nil)

    List items created before this thread item ID. Defaults to null for the newest r

  • limit (Integer) (defaults to: nil)

    Maximum number of thread items to return. Defaults to 20.

  • order (Symbol, OpenAI::Models::Beta::ChatKit::ThreadListItemsParams::Order) (defaults to: nil)

    Sort order for results by creation time. Defaults to ‘desc`.

  • request_options (OpenAI::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/openai/models/beta/chatkit/thread_list_items_params.rb', line 38

Instance Attribute Details

#afterString?

List items created after this thread item ID. Defaults to null for the first page.

Returns:

  • (String, nil)


17
# File 'lib/openai/models/beta/chatkit/thread_list_items_params.rb', line 17

optional :after, String

#beforeString?

List items created before this thread item ID. Defaults to null for the newest results.

Returns:

  • (String, nil)


24
# File 'lib/openai/models/beta/chatkit/thread_list_items_params.rb', line 24

optional :before, String

#limitInteger?

Maximum number of thread items to return. Defaults to 20.

Returns:

  • (Integer, nil)


30
# File 'lib/openai/models/beta/chatkit/thread_list_items_params.rb', line 30

optional :limit, Integer

#orderSymbol, ...

Sort order for results by creation time. Defaults to ‘desc`.



36
# File 'lib/openai/models/beta/chatkit/thread_list_items_params.rb', line 36

optional :order, enum: -> { OpenAI::Beta::ChatKit::ThreadListItemsParams::Order }