pub struct AnswerOutcome {
pub session: Session,
pub response: String,
pub plan_mode_transition: Option<PlanModeTransition>,
pub permission_grants: Vec<(PermissionType, String)>,
}Expand description
Outcome of Agent::answer — the updated session, the recorded response,
and any side effects submit_pending_response computed (plan-mode
transitions, permission grants implied by an approval).
Fields§
§session: SessionThe session after the pending question was answered (tool result
recorded, pending_question cleared, resume markers set).
response: StringThe response text that was recorded.
plan_mode_transition: Option<PlanModeTransition>Plan-mode entered/exited transition, if the answered question was
EnterPlanMode/ExitPlanMode.
permission_grants: Vec<(PermissionType, String)>(PermissionType, resource) grants implied by approving a permission
prompt (empty unless the pending question was a permission approval).
Already applied to this Agent’s configured
permission_checker, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnswerOutcome
impl RefUnwindSafe for AnswerOutcome
impl Send for AnswerOutcome
impl Sync for AnswerOutcome
impl Unpin for AnswerOutcome
impl UnsafeUnpin for AnswerOutcome
impl UnwindSafe for AnswerOutcome
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