Class: OpenAI::Models::Beta::ChatKitWorkflow
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::ChatKitWorkflow
- 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
-
#id ⇒ String
Identifier of the workflow backing the session.
-
#state_variables ⇒ ::Hash[Symbol, OpenAI::Models::Beta::ChatKitWorkflow::state_variable]?
State variable key-value pairs applied when invoking the workflow.
-
#tracing ⇒ OpenAI::Beta::ChatKitWorkflow::Tracing
Tracing settings applied to the workflow.
-
#version ⇒ String?
Specific workflow version used for the session.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ChatKitWorkflow
constructor
A new instance of ChatKitWorkflow.
- #to_hash ⇒ { id: String, state_variables: ::Hash[Symbol, OpenAI::Models::Beta::ChatKitWorkflow::state_variable]?, tracing: OpenAI::Beta::ChatKitWorkflow::Tracing, version: String? }
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.
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.
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.
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.
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.
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)
|
|
# 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? }
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?
}
|