Vertex AI v1 API - Class AgentResource (3.79.0)

public sealed class AgentResource : IMessage<AgentResource>, IEquatable<AgentResource>, IDeepCloneable<AgentResource>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1 API class AgentResource.

Defines the identity of an agent being monitored.

Inheritance

object > AgentResource

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

AgentResource()

public AgentResource()

AgentResource(AgentResource)

public AgentResource(AgentResource other)
Parameter
Name Description
other AgentResource

Properties

Agent

public string Agent { get; set; }

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.
Property Value
Type Description
string

AgentAsResourceName

public IResourceName AgentAsResourceName { get; set; }

IResourceName-typed view over the Agent resource name property.

Property Value
Type Description
IResourceName

AgentFramework

public AgentResource.Types.AgentFramework AgentFramework { get; set; }

Optional. The framework used to build the agent, orthogonal to the runtime agent_type.

Property Value
Type Description
AgentResourceTypesAgentFramework

AgentType

public AgentResource.Types.AgentType AgentType { get; set; }

Required. The runtime type of the agent.

Property Value
Type Description
AgentResourceTypesAgentType

Location

public string Location { get; set; }

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).

Property Value
Type Description
string