pub struct PlainTextRecoveryContext<'a> {
pub messages: &'a [AgentMessage],
pub iteration: usize,
pub available_tool_names: &'a [&'a str],
pub terminal_fallback_tool: Option<&'a str>,
}Expand description
Context for ProtocolPolicy::plain_text_recovery_prompt.
Read-only observables describing the turn that produced plain text with no tool call. New fields are additive.
Fields§
§messages: &'a [AgentMessage]Full message history as it will be sent on the recovery turn.
iteration: usizeZero-indexed iteration within the current run.
available_tool_names: &'a [&'a str]Names of the tools the loop is currently advertising.
terminal_fallback_tool: Option<&'a str>The configured terminal-delivery fallback tool, when one is set
(see crate::LoopConfig::plain_text_terminal_fallback_tool).
Auto Trait Implementations§
impl<'a> Freeze for PlainTextRecoveryContext<'a>
impl<'a> RefUnwindSafe for PlainTextRecoveryContext<'a>
impl<'a> Send for PlainTextRecoveryContext<'a>
impl<'a> Sync for PlainTextRecoveryContext<'a>
impl<'a> Unpin for PlainTextRecoveryContext<'a>
impl<'a> UnsafeUnpin for PlainTextRecoveryContext<'a>
impl<'a> UnwindSafe for PlainTextRecoveryContext<'a>
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