Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentMCPToolResultEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentMCPToolResultEvent
- Defined in:
- lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#content ⇒ Array<Anthropic::Models::Beta::Sessions::BetaManagedAgentsTextBlock, Anthropic::Models::Beta::Sessions::BetaManagedAgentsImageBlock, Anthropic::Models::Beta::Sessions::BetaManagedAgentsDocumentBlock>?
The result content returned by the tool.
-
#id ⇒ String
Unique identifier for this event.
-
#is_error ⇒ Boolean?
Whether the tool execution resulted in an error.
-
#mcp_tool_use_id ⇒ String
The id of the ‘agent.mcp_tool_use` event this result corresponds to.
-
#processed_at ⇒ Time
A timestamp in RFC 3339 format.
- #type ⇒ Symbol, Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentMCPToolResultEvent::Type
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, mcp_tool_use_id:, processed_at:, type:, content: nil, is_error: nil) ⇒ Object
constructor
Event representing the result of an MCP tool execution.
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:, mcp_tool_use_id:, processed_at:, type:, content: nil, is_error: nil) ⇒ Object
Event representing the result of an MCP tool execution.
|
|
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb', line 44
|
Instance Attribute Details
#content ⇒ Array<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_mcp_tool_result_event.rb', line 35 optional :content, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::Sessions::BetaManagedAgentsAgentMCPToolResultEvent::Content] } |
#id ⇒ String
Unique identifier for this event.
12 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb', line 12 required :id, String |
#is_error ⇒ Boolean?
Whether the tool execution resulted in an error.
42 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb', line 42 optional :is_error, Anthropic::Internal::Type::Boolean, nil?: true |
#mcp_tool_use_id ⇒ String
The id of the ‘agent.mcp_tool_use` event this result corresponds to.
18 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb', line 18 required :mcp_tool_use_id, String |
#processed_at ⇒ Time
A timestamp in RFC 3339 format
24 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb', line 24 required :processed_at, Time |
#type ⇒ Symbol, Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentMCPToolResultEvent::Type
29 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb', line 29 required :type, enum: -> { Anthropic::Beta::Sessions::BetaManagedAgentsAgentMCPToolResultEvent::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb', line 65
|