pub struct GenaiAttachAgentGuardrailsBody {
pub agent_uuid: Option<String>,
pub guardrails: Vec<GenaiAttachAgentGuardrailsBodyGuardrailsItem>,
}Expand description
Information about linking an agent to a guardrail
JSON schema
{
"description": "Information about linking an agent to a guardrail",
"type": "object",
"properties": {
"agent_uuid": {
"description": "The UUID of the agent.",
"examples": [
"\"12345678-1234-1234-1234-123456789012\""
],
"type": "string"
},
"guardrails": {
"description": "The list of guardrails to attach.",
"type": "array",
"items": {
"type": "object",
"properties": {
"guardrail_uuid": {
"description": "Guardrail uuid",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": "string"
},
"priority": {
"description": "Priority of the guardrail",
"examples": [
123
],
"type": "integer",
"format": "int64"
}
}
}
}
}
}Fields§
§agent_uuid: Option<String>The UUID of the agent.
guardrails: Vec<GenaiAttachAgentGuardrailsBodyGuardrailsItem>The list of guardrails to attach.
Trait Implementations§
Source§impl Clone for GenaiAttachAgentGuardrailsBody
impl Clone for GenaiAttachAgentGuardrailsBody
Source§fn clone(&self) -> GenaiAttachAgentGuardrailsBody
fn clone(&self) -> GenaiAttachAgentGuardrailsBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for GenaiAttachAgentGuardrailsBody
impl<'de> Deserialize<'de> for GenaiAttachAgentGuardrailsBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&GenaiAttachAgentGuardrailsBody> for GenaiAttachAgentGuardrailsBody
impl From<&GenaiAttachAgentGuardrailsBody> for GenaiAttachAgentGuardrailsBody
Source§fn from(value: &GenaiAttachAgentGuardrailsBody) -> Self
fn from(value: &GenaiAttachAgentGuardrailsBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenaiAttachAgentGuardrailsBody
impl RefUnwindSafe for GenaiAttachAgentGuardrailsBody
impl Send for GenaiAttachAgentGuardrailsBody
impl Sync for GenaiAttachAgentGuardrailsBody
impl Unpin for GenaiAttachAgentGuardrailsBody
impl UnsafeUnpin for GenaiAttachAgentGuardrailsBody
impl UnwindSafe for GenaiAttachAgentGuardrailsBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more