Reference documentation and code samples for the Google Cloud Ces V1 Client class RemoteAgentTool.
Represents a tool that allows the agent to call another remote agent.
Generated from protobuf message google.cloud.ces.v1.RemoteAgentTool
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The name of the tool. |
↳ description |
string
Required. The description of the tool. |
↳ agent_card |
AgentCard
Required. The agent card of the remote agent that this tool invokes. |
↳ api_authentication |
ApiAuthentication
Optional. Authentication configuration for calling the remote agent. |
↳ stateful_agent |
bool
Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool. |
↳ input_variable_mapping |
array|Google\Protobuf\Internal\MapField
Optional. Mapping of input variable names of remote agent to GECX variable names. |
↳ output_variable_mapping |
array|Google\Protobuf\Internal\MapField
Optional. Mapping of output variable names of remote agent to GECX variable names. |
getName
Required. The name of the tool.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. The name of the tool.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Required. The description of the tool.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Required. The description of the tool.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAgentCard
Required. The agent card of the remote agent that this tool invokes.
| Returns | |
|---|---|
| Type | Description |
AgentCard|null |
|
hasAgentCard
clearAgentCard
setAgentCard
Required. The agent card of the remote agent that this tool invokes.
| Parameter | |
|---|---|
| Name | Description |
var |
AgentCard
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getApiAuthentication
Optional. Authentication configuration for calling the remote agent.
| Returns | |
|---|---|
| Type | Description |
ApiAuthentication|null |
|
hasApiAuthentication
clearApiAuthentication
setApiAuthentication
Optional. Authentication configuration for calling the remote agent.
| Parameter | |
|---|---|
| Name | Description |
var |
ApiAuthentication
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStatefulAgent
Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setStatefulAgent
Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInputVariableMapping
Optional. Mapping of input variable names of remote agent to GECX variable names.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setInputVariableMapping
Optional. Mapping of input variable names of remote agent to GECX variable names.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOutputVariableMapping
Optional. Mapping of output variable names of remote agent to GECX variable names.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setOutputVariableMapping
Optional. Mapping of output variable names of remote agent to GECX variable names.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|