Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::AgentResource (v1.52.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::AgentResource.

Defines the identity of an agent being monitored.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#agent

def agent() -> ::String
Returns
  • (::String) —

    Required. The resource name or identifier of the agent to monitor. The format depends on agent_type:

    • REASONING_ENGINE: //aiplatform.googleapis.com/projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}
    • CLOUD_RUN_SERVICE: the full resource name of the Cloud Run service, //run.googleapis.com/projects/{project}/locations/{location}/services/{service}
    • GKE_WORKLOAD: the full resource name of the Google Kubernetes Engine cluster followed by the agent's OpenTelemetry service.name, //container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/{service}. For a zonal cluster, zones/{zone} replaces locations/{location}. Some names end in k8s/namespaces/{namespace}/apps/deployments/{deployment} instead of {service}.
    • GCE_INSTANCE: the full resource name of the Compute Engine instance followed by the agent's OpenTelemetry service.name, //compute.googleapis.com/projects/{project}/zones/{zone}/instances/{instance}/{service}, where {instance} is the numeric instance ID.
    • AWS and AZURE: an identifier built from the agent's OpenTelemetry resource attributes, usually {platform}:{account}:{region}:{name}. {platform} is the cloud.platform value. {account} is cloud.account.id, or the ID of the Google Cloud project that receives the telemetry if cloud.account.id isn't set. {region} is cloud.region. {name} is faas.name, or the Kubernetes cluster name followed by /k8s/namespaces/{namespace}/apps/deployments/{deployment} or /{service}. For example, aws_lambda:123456789012:us-east-2:inventory-agent.
    • AGENT_TYPE_OTHER: a stable identifier for the agent, such as the full resource name of its runtime or its OpenTelemetry service.name.

#agent=

def agent=(value) -> ::String
Parameter
  • value (::String) —

    Required. The resource name or identifier of the agent to monitor. The format depends on agent_type:

    • REASONING_ENGINE: //aiplatform.googleapis.com/projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}
    • CLOUD_RUN_SERVICE: the full resource name of the Cloud Run service, //run.googleapis.com/projects/{project}/locations/{location}/services/{service}
    • GKE_WORKLOAD: the full resource name of the Google Kubernetes Engine cluster followed by the agent's OpenTelemetry service.name, //container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/{service}. For a zonal cluster, zones/{zone} replaces locations/{location}. Some names end in k8s/namespaces/{namespace}/apps/deployments/{deployment} instead of {service}.
    • GCE_INSTANCE: the full resource name of the Compute Engine instance followed by the agent's OpenTelemetry service.name, //compute.googleapis.com/projects/{project}/zones/{zone}/instances/{instance}/{service}, where {instance} is the numeric instance ID.
    • AWS and AZURE: an identifier built from the agent's OpenTelemetry resource attributes, usually {platform}:{account}:{region}:{name}. {platform} is the cloud.platform value. {account} is cloud.account.id, or the ID of the Google Cloud project that receives the telemetry if cloud.account.id isn't set. {region} is cloud.region. {name} is faas.name, or the Kubernetes cluster name followed by /k8s/namespaces/{namespace}/apps/deployments/{deployment} or /{service}. For example, aws_lambda:123456789012:us-east-2:inventory-agent.
    • AGENT_TYPE_OTHER: a stable identifier for the agent, such as the full resource name of its runtime or its OpenTelemetry service.name.
Returns
  • (::String) —

    Required. The resource name or identifier of the agent to monitor. The format depends on agent_type:

    • REASONING_ENGINE: //aiplatform.googleapis.com/projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}
    • CLOUD_RUN_SERVICE: the full resource name of the Cloud Run service, //run.googleapis.com/projects/{project}/locations/{location}/services/{service}
    • GKE_WORKLOAD: the full resource name of the Google Kubernetes Engine cluster followed by the agent's OpenTelemetry service.name, //container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/{service}. For a zonal cluster, zones/{zone} replaces locations/{location}. Some names end in k8s/namespaces/{namespace}/apps/deployments/{deployment} instead of {service}.
    • GCE_INSTANCE: the full resource name of the Compute Engine instance followed by the agent's OpenTelemetry service.name, //compute.googleapis.com/projects/{project}/zones/{zone}/instances/{instance}/{service}, where {instance} is the numeric instance ID.
    • AWS and AZURE: an identifier built from the agent's OpenTelemetry resource attributes, usually {platform}:{account}:{region}:{name}. {platform} is the cloud.platform value. {account} is cloud.account.id, or the ID of the Google Cloud project that receives the telemetry if cloud.account.id isn't set. {region} is cloud.region. {name} is faas.name, or the Kubernetes cluster name followed by /k8s/namespaces/{namespace}/apps/deployments/{deployment} or /{service}. For example, aws_lambda:123456789012:us-east-2:inventory-agent.
    • AGENT_TYPE_OTHER: a stable identifier for the agent, such as the full resource name of its runtime or its OpenTelemetry service.name.

#agent_framework

def agent_framework() -> ::Google::Cloud::AIPlatform::V1::AgentResource::AgentFramework
Returns

#agent_framework=

def agent_framework=(value) -> ::Google::Cloud::AIPlatform::V1::AgentResource::AgentFramework
Parameter
Returns

#agent_type

def agent_type() -> ::Google::Cloud::AIPlatform::V1::AgentResource::AgentType
Returns

#agent_type=

def agent_type=(value) -> ::Google::Cloud::AIPlatform::V1::AgentResource::AgentType
Parameter
Returns

#location

def location() -> ::String
Returns
  • (::String) — Output only. The region of the agent resource: a Google Cloud location (for example, us-central1), or for an AWS or AZURE agent, the region in that cloud (for example, us-east-2).