Class: Revox::Models::CallSearchResponse::Call::Assistant::CustomTool

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/call_search_response.rb,
sig/revox/models/call_search_response.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/call_search_response.rb', line 977

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)


892
# File 'lib/revox/models/call_search_response.rb', line 892

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)


899
# File 'lib/revox/models/call_search_response.rb', line 899

required :description, String

#headersArray<Revox::Models::CallSearchResponse::Call::Assistant::CustomTool::Header>

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



905
906
# File 'lib/revox/models/call_search_response.rb', line 905

required :headers,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CallSearchResponse::Call::Assistant::CustomTool::Header] }

#input_schemaArray<Revox::Models::CallSearchResponse::Call::Assistant::CustomTool::InputSchema>

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



913
914
# File 'lib/revox/models/call_search_response.rb', line 913

required :input_schema,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CallSearchResponse::Call::Assistant::CustomTool::InputSchema] }

#method_Symbol, Revox::Models::CallSearchResponse::Call::Assistant::CustomTool::Method

HTTP method to use when calling the API endpoint

Parameters:

  • value (Revox::Models::CallSearchResponse::Call::Assistant::CustomTool::method_)

Returns:



920
921
922
# File 'lib/revox/models/call_search_response.rb', line 920

required :method_,
enum: -> { Revox::Models::CallSearchResponse::Call::Assistant::CustomTool::Method },
api_name: :method

#nameString

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

Parameters:

  • value (String)

Returns:

  • (String)


928
# File 'lib/revox/models/call_search_response.rb', line 928

required :name, String

#query_paramsArray<Revox::Models::CallSearchResponse::Call::Assistant::CustomTool::QueryParam>

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



935
936
# File 'lib/revox/models/call_search_response.rb', line 935

required :query_params,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CallSearchResponse::Call::Assistant::CustomTool::QueryParam] }

#urlString

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

Parameters:

  • value (String)

Returns:

  • (String)


943
# File 'lib/revox/models/call_search_response.rb', line 943

required :url, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/revox/models/call_search_response.rb', line 1027

Instance Method Details

#to_hash{

Returns:

  • ({)


648
# File 'sig/revox/models/call_search_response.rbs', line 648

def to_hash: -> {