Class: OpenAI::Models::Beta::ChatKitWorkflow

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/chatkit_workflow.rb,
sig/openai/models/beta/chatkit_workflow.rbs

Defined Under Namespace

Modules: StateVariable Classes: Tracing

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ ChatKitWorkflow

Returns a new instance of ChatKitWorkflow.

Parameters:

  • id —

    Identifier of the workflow backing the session.

  • state_variables —

    State variable key-value pairs applied when invoking the workflow. Defaults to null when no overrides were provided.

  • tracing —

    Tracing settings applied to the workflow.

  • version —

    Specific workflow version used for the session. Defaults to null when using the latest deployment.

  • id: (String)
  • state_variables: (::Hash[Symbol, OpenAI::Models::Beta::ChatKitWorkflow::state_variable], nil)
  • tracing: (OpenAI::Beta::ChatKitWorkflow::Tracing)
  • version: (String, nil)


37
38
39
40
41
42
# File 'sig/openai/models/beta/chatkit_workflow.rbs', line 37

def initialize: (
  id: String,
  state_variables: ::Hash[Symbol, OpenAI::Models::Beta::ChatKitWorkflow::state_variable]?,
  tracing: OpenAI::Beta::ChatKitWorkflow::Tracing,
  version: String?
) -> void

Instance Attribute Details

#id ⇒ String

Identifier of the workflow backing the session.

Returns:

  • (String)


11
# File 'lib/openai/models/beta/chatkit_workflow.rb', line 11

required :id, String

#state_variables ⇒ ::Hash[Symbol, OpenAI::Models::Beta::ChatKitWorkflow::state_variable]?

State variable key-value pairs applied when invoking the workflow. Defaults to null when no overrides were provided.

Returns:

  • (::Hash[Symbol, OpenAI::Models::Beta::ChatKitWorkflow::state_variable], nil)


18
19
20
21
22
# File 'lib/openai/models/beta/chatkit_workflow.rb', line 18

required(
  :state_variables,
  -> { OpenAI::Internal::Type::HashOf[union: OpenAI::Beta::ChatKitWorkflow::StateVariable] },
  nil?: true
)

#tracing ⇒ OpenAI::Beta::ChatKitWorkflow::Tracing

Tracing settings applied to the workflow.

Returns:

  • (OpenAI::Beta::ChatKitWorkflow::Tracing)


28
# File 'lib/openai/models/beta/chatkit_workflow.rb', line 28

required :tracing, -> { OpenAI::Beta::ChatKitWorkflow::Tracing }

#version ⇒ String?

Specific workflow version used for the session. Defaults to null when using the latest deployment.

Returns:

  • (String, nil)


35
# File 'lib/openai/models/beta/chatkit_workflow.rb', line 35

required :version, String, nil?: true

Class Method Details

.variants ⇒ Array(String, Integer, Boolean, Float)

Returns:

  • (Array(String, Integer, Boolean, Float))


# File 'lib/openai/models/beta/chatkit_workflow.rb', line 64

Instance Method Details

#to_hash ⇒ { id: String, state_variables: ::Hash[Symbol, OpenAI::Models::Beta::ChatKitWorkflow::state_variable]?, tracing: OpenAI::Beta::ChatKitWorkflow::Tracing, version: String? }

Returns:

  • ({ id: String, state_variables: ::Hash[Symbol, OpenAI::Models::Beta::ChatKitWorkflow::state_variable]?, tracing: OpenAI::Beta::ChatKitWorkflow::Tracing, version: String? })


44
45
46
47
48
49
# File 'sig/openai/models/beta/chatkit_workflow.rbs', line 44

def to_hash: -> {
  id: String,
  state_variables: ::Hash[Symbol, OpenAI::Models::Beta::ChatKitWorkflow::state_variable]?,
  tracing: OpenAI::Beta::ChatKitWorkflow::Tracing,
  version: String?
}