Class: Revox::Models::AssistantUpdateParams::CustomTool

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/assistant_update_params.rb,
sig/revox/models/assistant_update_params.rbs

Defined Under Namespace

Modules: Method Classes: Header, InputSchema, QueryParam

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

Parameters:

  • key (String)
  • value (String)


# File 'lib/revox/models/assistant_update_params.rb', line 679

Instance Attribute Details

#body_templateString?

JSON body template for the request. Use quoted {variable} placeholders (e.g. "{name}") for dynamic values

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


598
# File 'lib/revox/models/assistant_update_params.rb', line 598

required :body_template, String, nil?: true

#descriptionString

Human-readable description of what the tool does, used by the LLM to decide when to call it

Parameters:

  • value (String)

Returns:

  • (String)


605
# File 'lib/revox/models/assistant_update_params.rb', line 605

required :description, String

#headersArray<Revox::Models::AssistantUpdateParams::CustomTool::Header>

HTTP headers to include in the request. Values support {variable} placeholders

Parameters:

  • value (::Array[Revox::AssistantUpdateParams::CustomTool::Header])

Returns:



611
# File 'lib/revox/models/assistant_update_params.rb', line 611

required :headers, -> { Revox::Internal::Type::ArrayOf[Revox::AssistantUpdateParams::CustomTool::Header] }

#input_schemaArray<Revox::Models::AssistantUpdateParams::CustomTool::InputSchema>

Schema defining the parameters the LLM should extract from the conversation to pass to this tool

Parameters:

  • value (::Array[Revox::AssistantUpdateParams::CustomTool::InputSchema])

Returns:



618
619
# File 'lib/revox/models/assistant_update_params.rb', line 618

required :input_schema,
-> { Revox::Internal::Type::ArrayOf[Revox::AssistantUpdateParams::CustomTool::InputSchema] }

#method_Symbol, Revox::Models::AssistantUpdateParams::CustomTool::Method

HTTP method to use when calling the API endpoint

Parameters:

  • value (Revox::Models::AssistantUpdateParams::CustomTool::method_)

Returns:



625
# File 'lib/revox/models/assistant_update_params.rb', line 625

required :method_, enum: -> { Revox::AssistantUpdateParams::CustomTool::Method }, api_name: :method

#nameString

Unique tool name in lowercase_snake_case (e.g. check_inventory)

Parameters:

  • value (String)

Returns:

  • (String)


631
# File 'lib/revox/models/assistant_update_params.rb', line 631

required :name, String

#query_paramsArray<Revox::Models::AssistantUpdateParams::CustomTool::QueryParam>

Query string parameters appended to the URL. Values support {variable} placeholders

Parameters:

  • value (::Array[Revox::AssistantUpdateParams::CustomTool::QueryParam])

Returns:



638
639
# File 'lib/revox/models/assistant_update_params.rb', line 638

required :query_params,
-> { Revox::Internal::Type::ArrayOf[Revox::AssistantUpdateParams::CustomTool::QueryParam] }

#urlString

Full URL of the API endpoint. Supports {variable} placeholders for dynamic values

Parameters:

  • value (String)

Returns:

  • (String)


646
# File 'lib/revox/models/assistant_update_params.rb', line 646

required :url, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/revox/models/assistant_update_params.rb', line 728

Instance Method Details

#to_hash{

Returns:

  • ({)


484
# File 'sig/revox/models/assistant_update_params.rbs', line 484

def to_hash: -> {