Resource: SemanticGovernancePolicy
Represents a governance policy applied to a specific Agent and optionally a specific Tool within that Agent.
namestring
Identifier. Resource name of the SemanticGovernancePolicy.
Output only. timestamp when this SemanticGovernancePolicy was created.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
Output only. timestamp when this SemanticGovernancePolicy was last updated.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
etagstring
Optional. Used to perform consistent read-modify-write transactions. If provided, the request will only succeed if the etag matches the current value. Otherwise, an ABORTED error will be returned.
displayNamestring
Optional. The user-defined name of the SemanticGovernancePolicy.
descriptionstring
Optional. The description of the SemanticGovernancePolicy.
naturalLanguageConstraintstring
Required. The natural language constraint of the SemanticGovernancePolicy.
agentstring
Required. The name of the agent in Agent Registry that is affected by this policy.
Optional. The McpTools that are affected by this policy.
agentIdentitystring
Output only. Represents the principal of the agent, used by the Policy Decision Point (PDP) for governance checks. For more information, see https://docs.cloud.google.com/agent-builder/agent-engine/agent-identity
Format: principal://TRUST_DOMAIN/NAMESPACE/AGENT_NAME
Example: principal://agents.global.org-ORGANIZATION_ID.system.id.goog/resources/aiplatform/projects/PROJECT_NUMBER/locations/LOCATION/reasoningEngines/AGENT_ENGINE_ID
| JSON representation |
|---|
{
"name": string,
"createTime": string,
"updateTime": string,
"etag": string,
"displayName": string,
"description": string,
"naturalLanguageConstraint": string,
"agent": string,
"mcpTools": [
{
object ( |
McpTool
Represents a governance policy applied to MCP tools used by an Agent.
mcpServerstring
Required. The resource name of the McpServer in Agent Registry that is affected by this policy. Format: projects/{project}/locations/{location}/mcpServers/{mcpServer}
tools[]string
Optional. The resource names of the McpTools used by the Agent that is affected by this policy. If not specified, the policy applies to all McpTools in the McpServer.
| JSON representation |
|---|
{ "mcpServer": string, "tools": [ string ] } |
Methods |
|
|---|---|
|
Creates a SemanticGovernancePolicy. |
|
Deletes a SemanticGovernancePolicy. |
|
Gets a SemanticGovernancePolicy. |
|
Lists SemanticGovernancePolicies in a given location. |
|
Updates a SemanticGovernancePolicy. |