Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentToolResultEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb

Defined Under Namespace

Modules: Content, Type

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(id:, processed_at:, tool_use_id:, type:, content: nil, is_error: nil) ⇒ Object

Event representing the result of an agent tool execution.

Parameters:



# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb', line 44

Instance Attribute Details

#contentArray<Anthropic::Models::Beta::Sessions::BetaManagedAgentsTextBlock, Anthropic::Models::Beta::Sessions::BetaManagedAgentsImageBlock, Anthropic::Models::Beta::Sessions::BetaManagedAgentsDocumentBlock>?

The result content returned by the tool.



35
36
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb', line 35

optional :content,
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::Sessions::BetaManagedAgentsAgentToolResultEvent::Content] }

#idString

Unique identifier for this event.

Returns:

  • (String)


12
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb', line 12

required :id, String

#is_errorBoolean?

Whether the tool execution resulted in an error.

Returns:



42
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb', line 42

optional :is_error, Anthropic::Internal::Type::Boolean, nil?: true

#processed_atTime

A timestamp in RFC 3339 format

Returns:

  • (Time)


18
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb', line 18

required :processed_at, Time

#tool_use_idString

The id of the ‘agent.tool_use` event this result corresponds to.

Returns:

  • (String)


24
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb', line 24

required :tool_use_id, String

#typeSymbol, Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentToolResultEvent::Type



29
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb', line 29

required :type, enum: -> { Anthropic::Beta::Sessions::BetaManagedAgentsAgentToolResultEvent::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb', line 65