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

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

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

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, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Instance Method Details

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

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

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, Boolean, Float}) (defaults to: nil)

    State variables forwarded to the workflow. Keys may be up to 64 characters, valu

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

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

  • version (String) (defaults to: nil)

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



49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/openai/models/beta/chatkit/chat_session_workflow_param.rb', line 49

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

  variant String

  variant OpenAI::Internal::Type::Boolean

  variant Float

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