Class: Zavudev::Models::AgentTestParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/zavudev/models/agent_test_params.rb,
sig/zavudev/models/agent_test_params.rbs

Overview

See Also:

  • Zavudev::Resources::Agents#test_

Defined Under Namespace

Classes: History

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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 ⇒ Object



35
# File 'sig/zavudev/models/agent_test_params.rbs', line 35

def initialize: (

Instance Attribute Details

#agent_id ⇒ String

Parameters:

Returns:



13
# File 'lib/zavudev/models/agent_test_params.rb', line 13

required :agent_id, String

#execute_tools ⇒ Boolean?

Run the tools the agent calls instead of reporting the choice and stopping.

Off by default because a tool handler talks to the outside world: a rehearsal that charges a card is not a rehearsal. Turn it on to exercise the loop that actually matters — the model picks a tool, the handler answers, the model replies with the result — without sending a message to anyone. What ran comes back in executedToolCalls.

Parameters:

Returns:



31
# File 'lib/zavudev/models/agent_test_params.rb', line 31

optional :execute_tools, Zavudev::Internal::Type::Boolean, api_name: :executeTools

#history ⇒ Array<Zavudev::Models::AgentTestParams::History>?

Prior turns, oldest first, to exercise multi-turn behaviour without persisting a thread. Trimmed to the agent's context window.

Returns:



38
# File 'lib/zavudev/models/agent_test_params.rb', line 38

optional :history, -> { Zavudev::Internal::Type::ArrayOf[Zavudev::AgentTestParams::History] }

#message ⇒ String

What to say to the agent.

Parameters:

Returns:



19
# File 'lib/zavudev/models/agent_test_params.rb', line 19

required :message, String

#use_knowledge_base ⇒ Boolean?

Set false to skip retrieval and isolate prompt behaviour from the knowledge base.

Parameters:

Returns:



45
# File 'lib/zavudev/models/agent_test_params.rb', line 45

optional :use_knowledge_base, Zavudev::Internal::Type::Boolean, api_name: :useKnowledgeBase

Instance Method Details

#to_hash ⇒ {

Returns:



44
# File 'sig/zavudev/models/agent_test_params.rbs', line 44

def to_hash: -> {