pub struct PollRequest {
pub run_id: String,
pub decision_id: String,
pub outcome: Outcome,
pub error_kind: String,
pub model: String,
pub effort: String,
pub feedback: Option<String>,
pub session_id: Option<String>,
pub session_cost_so_far: Option<f64>,
}Expand description
Coarse host metadata only. decision_id is stable across transport retries;
the independent command request_id is always fresh. Neither contains secrets.
Fields§
§run_id: String§decision_id: String§outcome: Outcome§error_kind: String§model: String§effort: String§feedback: Option<String>Only emitted for a grant explicitly opting into feedback v1.
session_id: Option<String>(E-P0, §5 decision 2) Multi-session safety belt; additive, old plugins ignore it.
session_cost_so_far: Option<f64>(E-P7, §S3) Total USD spent on this session so far, so the plugin can make cost-aware next-turn decisions. Additive; old plugins ignore it.
Trait Implementations§
Source§impl Clone for PollRequest
impl Clone for PollRequest
Source§impl Debug for PollRequest
impl Debug for PollRequest
Source§impl<'de> Deserialize<'de> for PollRequest
impl<'de> Deserialize<'de> for PollRequest
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 PollRequest
impl RefUnwindSafe for PollRequest
impl Send for PollRequest
impl Sync for PollRequest
impl Unpin for PollRequest
impl UnsafeUnpin for PollRequest
impl UnwindSafe for PollRequest
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.