pub struct Hooks {
pub progress: Option<Arc<dyn Progress>>,
pub mcp: Vec<(String, Arc<dyn ToolClient>)>,
pub mcp_tools: Vec<McpTool>,
pub format: Option<&'static dyn Adapter>,
pub present: PresentContext,
}Expand description
What a live run hands its skills besides the model: someone to ask and somewhere to report progress. Neither is journaled; replay gets neither.
Fields§
§progress: Option<Arc<dyn Progress>>Receives live progress.
mcp: Vec<(String, Arc<dyn ToolClient>)>Running MCP servers by name.
mcp_tools: Vec<McpTool>Their tools, granted in the manifest.
format: Option<&'static dyn Adapter>The project’s spec format; the reference format when unset.
present: PresentContextThe sandbox as a person asked about a command is told.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Hooks
impl !UnwindSafe for Hooks
impl Freeze for Hooks
impl Send for Hooks
impl Sync for Hooks
impl Unpin for Hooks
impl UnsafeUnpin for Hooks
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