Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1 API class Google::Cloud::Ces::V1::Agent.
An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#after_agent_callbacks
def after_agent_callbacks() -> ::Array<::Google::Cloud::Ces::V1::Callback>- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute after the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#after_agent_callbacks=
def after_agent_callbacks=(value) -> ::Array<::Google::Cloud::Ces::V1::Callback>- value (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute after the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute after the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#after_model_callbacks
def after_model_callbacks() -> ::Array<::Google::Cloud::Ces::V1::Callback>- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute after the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#after_model_callbacks=
def after_model_callbacks=(value) -> ::Array<::Google::Cloud::Ces::V1::Callback>- value (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute after the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute after the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#after_tool_callbacks
def after_tool_callbacks() -> ::Array<::Google::Cloud::Ces::V1::Callback>- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute after the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#after_tool_callbacks=
def after_tool_callbacks=(value) -> ::Array<::Google::Cloud::Ces::V1::Callback>- value (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute after the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute after the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#before_agent_callbacks
def before_agent_callbacks() -> ::Array<::Google::Cloud::Ces::V1::Callback>- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute before the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#before_agent_callbacks=
def before_agent_callbacks=(value) -> ::Array<::Google::Cloud::Ces::V1::Callback>- value (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute before the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute before the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#before_model_callbacks
def before_model_callbacks() -> ::Array<::Google::Cloud::Ces::V1::Callback>- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute before the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#before_model_callbacks=
def before_model_callbacks=(value) -> ::Array<::Google::Cloud::Ces::V1::Callback>- value (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute before the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute before the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#before_tool_callbacks
def before_tool_callbacks() -> ::Array<::Google::Cloud::Ces::V1::Callback>- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute before the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#before_tool_callbacks=
def before_tool_callbacks=(value) -> ::Array<::Google::Cloud::Ces::V1::Callback>- value (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute before the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
- (::Array<::Google::Cloud::Ces::V1::Callback>) — Optional. The callbacks to execute before the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
#child_agents
def child_agents() -> ::Array<::String>-
(::Array<::String>) — Optional. List of child agents in the agent tree.
Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
#child_agents=
def child_agents=(value) -> ::Array<::String>-
value (::Array<::String>) — Optional. List of child agents in the agent tree.
Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
-
(::Array<::String>) — Optional. List of child agents in the agent tree.
Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
#create_time
def create_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. Timestamp when the agent was created.
#description
def description() -> ::String- (::String) — Optional. Human-readable description of the agent.
#description=
def description=(value) -> ::String- value (::String) — Optional. Human-readable description of the agent.
- (::String) — Optional. Human-readable description of the agent.
#display_name
def display_name() -> ::String- (::String) — Required. Display name of the agent.
#display_name=
def display_name=(value) -> ::String- value (::String) — Required. Display name of the agent.
- (::String) — Required. Display name of the agent.
#etag
def etag() -> ::String- (::String) — Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
#etag=
def etag=(value) -> ::String- value (::String) — Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
- (::String) — Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
#generated_summary
def generated_summary() -> ::String- (::String) — Output only. If the agent is generated by the LLM assistant, this field contains a descriptive summary of the generation.
#guardrails
def guardrails() -> ::Array<::String>-
(::Array<::String>) — Optional. List of guardrails for the agent.
Format:
projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}
#guardrails=
def guardrails=(value) -> ::Array<::String>-
value (::Array<::String>) — Optional. List of guardrails for the agent.
Format:
projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}
-
(::Array<::String>) — Optional. List of guardrails for the agent.
Format:
projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}
#instruction
def instruction() -> ::String- (::String) — Optional. Instructions for the LLM model to guide the agent's behavior.
#instruction=
def instruction=(value) -> ::String- value (::String) — Optional. Instructions for the LLM model to guide the agent's behavior.
- (::String) — Optional. Instructions for the LLM model to guide the agent's behavior.
#llm_agent
def llm_agent() -> ::Google::Cloud::Ces::V1::Agent::LlmAgent-
(::Google::Cloud::Ces::V1::Agent::LlmAgent) — Optional. The default agent type.
Note: The following fields are mutually exclusive:
llm_agent,remote_dialogflow_agent. If a field in that set is populated, all other fields in the set will automatically be cleared.
#llm_agent=
def llm_agent=(value) -> ::Google::Cloud::Ces::V1::Agent::LlmAgent-
value (::Google::Cloud::Ces::V1::Agent::LlmAgent) — Optional. The default agent type.
Note: The following fields are mutually exclusive:
llm_agent,remote_dialogflow_agent. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Ces::V1::Agent::LlmAgent) — Optional. The default agent type.
Note: The following fields are mutually exclusive:
llm_agent,remote_dialogflow_agent. If a field in that set is populated, all other fields in the set will automatically be cleared.
#model_settings
def model_settings() -> ::Google::Cloud::Ces::V1::ModelSettings- (::Google::Cloud::Ces::V1::ModelSettings) — Optional. Configurations for the LLM model.
#model_settings=
def model_settings=(value) -> ::Google::Cloud::Ces::V1::ModelSettings- value (::Google::Cloud::Ces::V1::ModelSettings) — Optional. Configurations for the LLM model.
- (::Google::Cloud::Ces::V1::ModelSettings) — Optional. Configurations for the LLM model.
#name
def name() -> ::String-
(::String) — Identifier. The unique identifier of the agent.
Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
#name=
def name=(value) -> ::String-
value (::String) — Identifier. The unique identifier of the agent.
Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
-
(::String) — Identifier. The unique identifier of the agent.
Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
#remote_dialogflow_agent
def remote_dialogflow_agent() -> ::Google::Cloud::Ces::V1::Agent::RemoteDialogflowAgent-
(::Google::Cloud::Ces::V1::Agent::RemoteDialogflowAgent) — Optional. The remote
Dialogflow
agent to be used for the agent execution. If this field is set, all other
agent level properties will be ignored.
Note: If the Dialogflow agent is in a different project from the app, you should grant
roles/dialogflow.clientto the CES service agentservice-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.Note: The following fields are mutually exclusive:
remote_dialogflow_agent,llm_agent. If a field in that set is populated, all other fields in the set will automatically be cleared.
#remote_dialogflow_agent=
def remote_dialogflow_agent=(value) -> ::Google::Cloud::Ces::V1::Agent::RemoteDialogflowAgent-
value (::Google::Cloud::Ces::V1::Agent::RemoteDialogflowAgent) — Optional. The remote
Dialogflow
agent to be used for the agent execution. If this field is set, all other
agent level properties will be ignored.
Note: If the Dialogflow agent is in a different project from the app, you should grant
roles/dialogflow.clientto the CES service agentservice-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.Note: The following fields are mutually exclusive:
remote_dialogflow_agent,llm_agent. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Ces::V1::Agent::RemoteDialogflowAgent) — Optional. The remote
Dialogflow
agent to be used for the agent execution. If this field is set, all other
agent level properties will be ignored.
Note: If the Dialogflow agent is in a different project from the app, you should grant
roles/dialogflow.clientto the CES service agentservice-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.Note: The following fields are mutually exclusive:
remote_dialogflow_agent,llm_agent. If a field in that set is populated, all other fields in the set will automatically be cleared.
#tools
def tools() -> ::Array<::String>-
(::Array<::String>) — Optional. List of available tools for the agent.
Format:
projects/{project}/locations/{location}/apps/{app}/tools/{tool}
#tools=
def tools=(value) -> ::Array<::String>-
value (::Array<::String>) — Optional. List of available tools for the agent.
Format:
projects/{project}/locations/{location}/apps/{app}/tools/{tool}
-
(::Array<::String>) — Optional. List of available tools for the agent.
Format:
projects/{project}/locations/{location}/apps/{app}/tools/{tool}
#toolsets
def toolsets() -> ::Array<::Google::Cloud::Ces::V1::Agent::AgentToolset>- (::Array<::Google::Cloud::Ces::V1::Agent::AgentToolset>) — Optional. List of toolsets for the agent.
#toolsets=
def toolsets=(value) -> ::Array<::Google::Cloud::Ces::V1::Agent::AgentToolset>- value (::Array<::Google::Cloud::Ces::V1::Agent::AgentToolset>) — Optional. List of toolsets for the agent.
- (::Array<::Google::Cloud::Ces::V1::Agent::AgentToolset>) — Optional. List of toolsets for the agent.
#transfer_rules
def transfer_rules() -> ::Array<::Google::Cloud::Ces::V1::TransferRule>- (::Array<::Google::Cloud::Ces::V1::TransferRule>) — Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
#transfer_rules=
def transfer_rules=(value) -> ::Array<::Google::Cloud::Ces::V1::TransferRule>- value (::Array<::Google::Cloud::Ces::V1::TransferRule>) — Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
- (::Array<::Google::Cloud::Ces::V1::TransferRule>) — Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. Timestamp when the agent was last updated.