Class: Revox::Models::AssistantCreateParams::PromptFlow::Edge
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Revox::Models::AssistantCreateParams::PromptFlow::Edge
- Defined in:
- lib/revox/models/assistant_create_params.rb,
sig/revox/models/assistant_create_params.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(edges:, nodes:) ⇒ Edge
constructor
Visual prompt constructor data (nodes, edges, positions).
- #to_hash ⇒ { id: String, source: String, target: String }
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(edges:, nodes:) ⇒ Edge
Visual prompt constructor data (nodes, edges, positions). Used by the UI to re-open the visual editor. Does not affect call behavior — the flattened prompt field is what the LLM receives.
1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 |
# File 'lib/revox/models/assistant_create_params.rb', line 1008 class Edge < Revox::Internal::Type::BaseModel # @!attribute id # # @return [String] required :id, String # @!attribute source # # @return [String] required :source, String # @!attribute target # # @return [String] required :target, String # @!method initialize(id:, source:, target:) # @param id [String] # @param source [String] # @param target [String] end |
Instance Attribute Details
#id ⇒ String
1012 |
# File 'lib/revox/models/assistant_create_params.rb', line 1012 required :id, String |
#source ⇒ String
1017 |
# File 'lib/revox/models/assistant_create_params.rb', line 1017 required :source, String |
#target ⇒ String
1022 |
# File 'lib/revox/models/assistant_create_params.rb', line 1022 required :target, String |
Instance Method Details
#to_hash ⇒ { id: String, source: String, target: String }
818 |
# File 'sig/revox/models/assistant_create_params.rbs', line 818
def to_hash: -> { id: String, source: String, target: String }
|