Module: OpenAI::Models::Beta::ChatKit::ChatSessionWorkflowParam::StateVariable

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/beta/chatkit/chat_session_workflow_param.rb,
sig/openai/models/beta/chatkit/chat_session_workflow_param.rbs

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump

Methods included from Internal::Util::SorbetRuntimeSupport

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

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Class Method Details

.variants ⇒ ::Array[OpenAI::Models::Beta::ChatKit::ChatSessionWorkflowParam::state_variable]

Returns:

  • (::Array[OpenAI::Models::Beta::ChatKit::ChatSessionWorkflowParam::state_variable])


72
# File 'sig/openai/models/beta/chatkit/chat_session_workflow_param.rbs', line 72

def self?.variants: -> ::Array[OpenAI::Models::Beta::ChatKit::ChatSessionWorkflowParam::state_variable]

Instance Method Details

#initialize(id:, state_variables: nil, tracing: nil, version: nil) ⇒ Object

Workflow reference and overrides applied to the chat session.

Parameters:

  • id (String) —

    Identifier for the workflow invoked by the session.

  • state_variables (Hash{Symbol=>String, Integer, Boolean, Float}) (defaults to: nil) —

    State variables forwarded to the workflow. Keys may be up to 64 characters, values must be primitive types, and the map defaults to an empty object.

  • tracing (OpenAI::Models::Beta::ChatKit::ChatSessionWorkflowParam::Tracing) (defaults to: nil) —

    Optional tracing overrides for the workflow invocation. When omitted, tracing is enabled by default.

  • version (String) (defaults to: nil) —

    Specific workflow version to run. Defaults to the latest deployed version.



55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/openai/models/beta/chatkit/chat_session_workflow_param.rb', line 55

module StateVariable
  extend OpenAI::Internal::Type::Union

  variant String

  variant Integer

  variant OpenAI::Internal::Type::Boolean

  variant Float

  # @!method self.variants
  #   @return [Array(String, Integer, Boolean, Float)]
end