pub struct DecideRequest {
pub stage: String,
pub query: String,
pub caller_identity: DecisionCallerIdentity,
pub target: DecisionTarget,
pub user_token: Option<String>,
pub context: Option<Value>,
}Expand description
Inbound contract for POST /api/v1/decide. Mirrors platform DecideRequest.
Required: stage (one of "llm" | "tool" | "agent") and query.
user_token is optional — a PEP that supplies one gets the validated-user
record on the audit row; one that doesn’t gets a synthesized service user.
Fields§
§stage: String§query: String§caller_identity: DecisionCallerIdentity§target: DecisionTarget§user_token: Option<String>§context: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for DecideRequest
impl Clone for DecideRequest
Source§fn clone(&self) -> DecideRequest
fn clone(&self) -> DecideRequest
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 Debug for DecideRequest
impl Debug for DecideRequest
Source§impl Default for DecideRequest
impl Default for DecideRequest
Source§fn default() -> DecideRequest
fn default() -> DecideRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecideRequest
impl<'de> Deserialize<'de> for DecideRequest
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
Auto Trait Implementations§
impl Freeze for DecideRequest
impl RefUnwindSafe for DecideRequest
impl Send for DecideRequest
impl Sync for DecideRequest
impl Unpin for DecideRequest
impl UnsafeUnpin for DecideRequest
impl UnwindSafe for DecideRequest
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