Class: Zavudev::Models::AgentTestResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::AgentTestResponse
- Defined in:
- lib/zavudev/models/agent_test_response.rb,
sig/zavudev/models/agent_test_response.rbs
Overview
Defined Under Namespace
Classes: ExecutedToolCall
Instance Attribute Summary collapse
- #error ⇒ String?
-
#executed_tool_calls ⇒ Array<Zavudev::Models::AgentTestResponse::ExecutedToolCall>?
Tools that actually ran, in order, when the request set
executeTools. - #input_tokens ⇒ Integer
-
#knowledge_chunks_used ⇒ Integer
Knowledge-base chunks retrieved for this message.
- #latency_ms ⇒ Integer
- #output_tokens ⇒ Integer
- #success ⇒ Boolean
-
#text ⇒ String?
What the agent would reply.
-
#warnings ⇒ Array<String>
Things that are true of this agent but that a dry run cannot prove.
Instance Method Summary collapse
- #initialize ⇒ 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 ⇒ Object
39 |
# File 'sig/zavudev/models/agent_test_response.rbs', line 39
def initialize: (
|
Instance Attribute Details
#error ⇒ String?
10 |
# File 'lib/zavudev/models/agent_test_response.rb', line 10 required :error, String, nil?: true |
#executed_tool_calls ⇒ Array<Zavudev::Models::AgentTestResponse::ExecutedToolCall>?
Tools that actually ran, in order, when the request set executeTools. Empty on
a normal dry run, where nothing is executed. An entry with ok: false means the
agent saw an error and answered around it, which is what a customer would have
received.
68 69 70 |
# File 'lib/zavudev/models/agent_test_response.rb', line 68 optional :executed_tool_calls, -> { Zavudev::Internal::Type::ArrayOf[Zavudev::Models::AgentTestResponse::ExecutedToolCall] }, api_name: :executedToolCalls |
#input_tokens ⇒ Integer
15 |
# File 'lib/zavudev/models/agent_test_response.rb', line 15 required :input_tokens, Integer, api_name: :inputTokens |
#knowledge_chunks_used ⇒ Integer
Knowledge-base chunks retrieved for this message. Zero means the answer was not grounded in your documents.
22 |
# File 'lib/zavudev/models/agent_test_response.rb', line 22 required :knowledge_chunks_used, Integer, api_name: :knowledgeChunksUsed |
#latency_ms ⇒ Integer
27 |
# File 'lib/zavudev/models/agent_test_response.rb', line 27 required :latency_ms, Integer, api_name: :latencyMs |
#output_tokens ⇒ Integer
32 |
# File 'lib/zavudev/models/agent_test_response.rb', line 32 required :output_tokens, Integer, api_name: :outputTokens |
#success ⇒ Boolean
37 |
# File 'lib/zavudev/models/agent_test_response.rb', line 37 required :success, Zavudev::Internal::Type::Boolean |
#text ⇒ String?
What the agent would reply.
43 |
# File 'lib/zavudev/models/agent_test_response.rb', line 43 required :text, String, nil?: true |
#warnings ⇒ Array<String>
Things that are true of this agent but that a dry run cannot prove. Surfaced so a passing dry run is never mistaken for proof that the agent works live.
- The agent being disabled.
- Enabled tools that were not offered to the model here — the model never saw them, so a reply that looks like a lookup was invented. Live conversations on every channel do offer them; running them here would cause real side effects.
- An agent whose sender has none of the channels it triggers on, which answers every dry run and no real message.
- Contact metadata that exists on a real conversation but not here.
59 |
# File 'lib/zavudev/models/agent_test_response.rb', line 59 required :warnings, Zavudev::Internal::Type::ArrayOf[String] |
Instance Method Details
#to_hash ⇒ {
51 |
# File 'sig/zavudev/models/agent_test_response.rbs', line 51
def to_hash: -> {
|