Class: Revox::Models::CallCreateParams::Assistant::CustomTool
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Revox::Models::CallCreateParams::Assistant::CustomTool
- Defined in:
- lib/revox/models/call_create_params.rb,
sig/revox/models/call_create_params.rbs
Defined Under Namespace
Modules: Method Classes: Header, InputSchema, QueryParam
Instance Attribute Summary collapse
-
#body_template ⇒ String?
JSON body template for the request.
-
#description ⇒ String
Human-readable description of what the tool does, used by the LLM to decide when to call it.
-
#headers ⇒ Array<Revox::Models::CallCreateParams::Assistant::CustomTool::Header>
HTTP headers to include in the request.
-
#input_schema ⇒ Array<Revox::Models::CallCreateParams::Assistant::CustomTool::InputSchema>
Schema defining the parameters the LLM should extract from the conversation to pass to this tool.
-
#method_ ⇒ Symbol, Revox::Models::CallCreateParams::Assistant::CustomTool::Method
HTTP method to use when calling the API endpoint.
-
#name ⇒ String
Unique tool name in lowercase_snake_case (e.g. check_inventory).
-
#query_params ⇒ Array<Revox::Models::CallCreateParams::Assistant::CustomTool::QueryParam>
Query string parameters appended to the URL.
-
#url ⇒ String
Full URL of the API endpoint.
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(key:, value:) ⇒ Object constructor
- #to_hash ⇒ {
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(key:, value:) ⇒ Object
|
|
# File 'lib/revox/models/call_create_params.rb', line 767
|
Instance Attribute Details
#body_template ⇒ String?
JSON body template for the request. Use quoted {variable} placeholders (e.g. "{name}") for dynamic values
681 |
# File 'lib/revox/models/call_create_params.rb', line 681 required :body_template, String, nil?: true |
#description ⇒ String
Human-readable description of what the tool does, used by the LLM to decide when to call it
688 |
# File 'lib/revox/models/call_create_params.rb', line 688 required :description, String |
#headers ⇒ Array<Revox::Models::CallCreateParams::Assistant::CustomTool::Header>
HTTP headers to include in the request. Values support {variable} placeholders
694 695 |
# File 'lib/revox/models/call_create_params.rb', line 694 required :headers, -> { Revox::Internal::Type::ArrayOf[Revox::CallCreateParams::Assistant::CustomTool::Header] } |
#input_schema ⇒ Array<Revox::Models::CallCreateParams::Assistant::CustomTool::InputSchema>
Schema defining the parameters the LLM should extract from the conversation to pass to this tool
702 703 |
# File 'lib/revox/models/call_create_params.rb', line 702 required :input_schema, -> { Revox::Internal::Type::ArrayOf[Revox::CallCreateParams::Assistant::CustomTool::InputSchema] } |
#method_ ⇒ Symbol, Revox::Models::CallCreateParams::Assistant::CustomTool::Method
HTTP method to use when calling the API endpoint
709 710 711 712 713 |
# File 'lib/revox/models/call_create_params.rb', line 709 required :method_, enum: -> { Revox::CallCreateParams::Assistant::CustomTool::Method }, api_name: :method |
#name ⇒ String
Unique tool name in lowercase_snake_case (e.g. check_inventory)
719 |
# File 'lib/revox/models/call_create_params.rb', line 719 required :name, String |
#query_params ⇒ Array<Revox::Models::CallCreateParams::Assistant::CustomTool::QueryParam>
Query string parameters appended to the URL. Values support {variable} placeholders
726 727 |
# File 'lib/revox/models/call_create_params.rb', line 726 required :query_params, -> { Revox::Internal::Type::ArrayOf[Revox::CallCreateParams::Assistant::CustomTool::QueryParam] } |
#url ⇒ String
Full URL of the API endpoint. Supports {variable} placeholders for dynamic values
734 |
# File 'lib/revox/models/call_create_params.rb', line 734 required :url, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/revox/models/call_create_params.rb', line 816
|
Instance Method Details
#to_hash ⇒ {
548 |
# File 'sig/revox/models/call_create_params.rbs', line 548
def to_hash: -> {
|