Class: Google::Apis::CesV1::RemoteAgentTool

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RemoteAgentTool

Returns a new instance of RemoteAgentTool.



6872
6873
6874
# File 'lib/google/apis/ces_v1/classes.rb', line 6872

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#agent_cardGoogle::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



6860
6861
6862
# File 'lib/google/apis/ces_v1/classes.rb', line 6860

def agent_card
  @agent_card
end

#descriptionString

Required. The description of the tool. Corresponds to the JSON property description

Returns:

  • (String)


6865
6866
6867
# File 'lib/google/apis/ces_v1/classes.rb', line 6865

def description
  @description
end

#nameString

Required. The name of the tool. Corresponds to the JSON property name

Returns:

  • (String)


6870
6871
6872
# File 'lib/google/apis/ces_v1/classes.rb', line 6870

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6877
6878
6879
6880
6881
# File 'lib/google/apis/ces_v1/classes.rb', line 6877

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