Class: Google::Apis::CesV1::RemoteAgentTool
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::RemoteAgentTool
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb
Overview
Represents a tool that allows the agent to call another remote agent.
Instance Attribute Summary collapse
-
#agent_card ⇒ Google::Apis::CesV1::AgentCard
AgentCard conveys key information about a remote agent.
-
#description ⇒ String
Required.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RemoteAgentTool
constructor
A new instance of RemoteAgentTool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RemoteAgentTool
Returns a new instance of RemoteAgentTool.
6852 6853 6854 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6852 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_card ⇒ Google::Apis::CesV1::AgentCard
AgentCard conveys key information about a remote agent. It is a trimmed
version of the AgentCard defined in the A2A protocol https://a2a-protocol.org/
dev/specification/#441-agentcard
Corresponds to the JSON property agentCard
6840 6841 6842 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6840 def agent_card @agent_card end |
#description ⇒ String
Required. The description of the tool.
Corresponds to the JSON property description
6845 6846 6847 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6845 def description @description end |
#name ⇒ String
Required. The name of the tool.
Corresponds to the JSON property name
6850 6851 6852 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6850 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6857 6858 6859 6860 6861 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6857 def update!(**args) @agent_card = args[:agent_card] if args.key?(:agent_card) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) end |