pub enum PermissionPolicy {
AlwaysAllow,
AlwaysAsk,
Other(Value),
}Available on crate feature
managed-agents-preview only.Expand description
Permission policy controlling whether tool calls require user
confirmation. Forward-compatible: unknown policy types fall through
to Self::Other.
Variants§
AlwaysAllow
Auto-approve every invocation.
AlwaysAsk
Require a user.tool_confirmation event before each invocation.
Other(Value)
Unknown policy type; raw JSON preserved.
Trait Implementations§
Source§impl Clone for PermissionPolicy
impl Clone for PermissionPolicy
Source§fn clone(&self) -> PermissionPolicy
fn clone(&self) -> PermissionPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PermissionPolicy
impl Debug for PermissionPolicy
Source§impl<'de> Deserialize<'de> for PermissionPolicy
impl<'de> Deserialize<'de> for PermissionPolicy
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PermissionPolicy
impl PartialEq for PermissionPolicy
Source§impl Serialize for PermissionPolicy
impl Serialize for PermissionPolicy
impl StructuralPartialEq for PermissionPolicy
Auto Trait Implementations§
impl Freeze for PermissionPolicy
impl RefUnwindSafe for PermissionPolicy
impl Send for PermissionPolicy
impl Sync for PermissionPolicy
impl Unpin for PermissionPolicy
impl UnsafeUnpin for PermissionPolicy
impl UnwindSafe for PermissionPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.