pydo.genai.attach_agent_guardrails()
Generated on 8 May 2026
from pydo version
v0.34.0
Usage
client.genai.attach_agent_guardrails(
agent_uuid="\"123e4567-e89b-12d3-a456-426614174000\"",
body={
"agent_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"guardrails": [...],
},
)Description
To attach guardrails to an agent, send a POST request to /v2/gen-ai/agents/{agent_uuid}/guardrails.
Parameters
agent_uuidstring requiredThe UUID of the agent.
agent_uuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"The UUID of the agent.
guardrailsarray of objects optionalThe list of guardrails to attach.
Show child properties
guardrail_uuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000Guardrail uuid
priorityinteger optionalExample:
123Priority of the guardrail
Request Sample
Response Example
More Information
See /v2/gen-ai/agents/{agent_uuid}/guardrails in the API reference for additional detail on responses, headers, parameters, and more.