pub enum PolicyAction {
StartExecution {
graph_id: Option<String>,
},
InvokeTool {
tool_name: String,
},
LlmCall {
model: String,
},
ExternalAccess {
resource: String,
},
OutputContent {
content_type: String,
},
}Expand description
Actions that can be evaluated by policies
Variants§
StartExecution
Starting an execution
InvokeTool
Invoking a tool
LlmCall
Making an LLM call
ExternalAccess
Accessing external resource
OutputContent
Outputting content
Trait Implementations§
Source§impl Clone for PolicyAction
impl Clone for PolicyAction
Source§fn clone(&self) -> PolicyAction
fn clone(&self) -> PolicyAction
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 moreAuto Trait Implementations§
impl Freeze for PolicyAction
impl RefUnwindSafe for PolicyAction
impl Send for PolicyAction
impl Sync for PolicyAction
impl Unpin for PolicyAction
impl UnsafeUnpin for PolicyAction
impl UnwindSafe for PolicyAction
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