pub struct ProcessRequest {
pub session_id: String,
pub trigger: AgentTrigger,
pub granted_scopes: BTreeSet<String>,
pub idempotency_key: Option<String>,
pub policy: EnginePolicy,
pub provider: ProviderRequestConfig,
pub cancellation: CancellationToken,
}Expand description
Common top-level kernel re-exports for quickstarts.
Fields§
§session_id: String§trigger: AgentTrigger§granted_scopes: BTreeSet<String>§idempotency_key: Option<String>§policy: EnginePolicy§provider: ProviderRequestConfig§cancellation: CancellationTokenImplementations§
Source§impl ProcessRequest
impl ProcessRequest
pub fn new( session_id: impl Into<String>, trigger: AgentTrigger, ) -> ProcessRequest
pub fn with_scope(self, scope: impl Into<String>) -> ProcessRequest
pub fn with_policy(self, policy: EnginePolicy) -> ProcessRequest
pub fn with_idempotency_key( self, idempotency_key: impl Into<String>, ) -> ProcessRequest
pub fn with_provider_model(self, model: impl Into<String>) -> ProcessRequest
Trait Implementations§
Source§impl Clone for ProcessRequest
impl Clone for ProcessRequest
Source§fn clone(&self) -> ProcessRequest
fn clone(&self) -> ProcessRequest
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 moreAuto Trait Implementations§
impl Freeze for ProcessRequest
impl RefUnwindSafe for ProcessRequest
impl Send for ProcessRequest
impl Sync for ProcessRequest
impl Unpin for ProcessRequest
impl UnsafeUnpin for ProcessRequest
impl UnwindSafe for ProcessRequest
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