pub struct Request {
pub task: String,
pub task_title: String,
pub turn: u32,
pub tool: String,
pub arguments: Value,
pub kind: String,
pub reason: String,
pub covers: String,
pub risk: String,
pub claim: Option<String>,
pub options: Vec<String>,
}Expand description
A call that needs a person: the identity of the journaled question, so only what the journal already holds goes in (the presentation — the diff, the sandbox line — is built live from it).
Fields§
§task: Stringfeature/task.
task_title: StringThe task’s title.
turn: u32The model turn (1-based).
tool: StringThe tool.
arguments: ValueIts arguments as the model sent them.
kind: Stringwrite, edit, run, network or mcp.
reason: StringWhy it needs approval.
covers: StringWhat a “for this task” answer would cover.
risk: Stringhigh (runs arbitrary code or uses the network), medium (changes
dependencies, frozen tests or repository state; any MCP tool) or low.
claim: Option<String>What the model said in that turn: one line, at most 200 characters, control characters escaped — a claim, not a fact.
options: Vec<String>The choices offered, in order: of once, task, run, reject, stop.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.