pub struct TodoUpdateTool { /* private fields */ }Expand description
Agent tool that updates mutable fields on a session todo item.
Implementations§
Source§impl TodoUpdateTool
impl TodoUpdateTool
Sourcepub fn new(db_path: PathBuf, session_id: Uuid) -> Self
pub fn new(db_path: PathBuf, session_id: Uuid) -> Self
Create a todo update tool bound to one session’s SQLite database path.
Sourcepub fn from_sessions_dir(sessions_dir: &Path, session_id: Uuid) -> Self
pub fn from_sessions_dir(sessions_dir: &Path, session_id: Uuid) -> Self
Create a todo update tool bound to one session, using the standard database path under a sessions directory.
Trait Implementations§
Source§impl AgentTool for TodoUpdateTool
impl AgentTool for TodoUpdateTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Returns a human-readable description of what this tool does.
Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
Returns the JSON Schema describing the expected input parameters. Read more
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
input: Value,
) -> Pin<Box<dyn Future<Output = ToolResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
input: Value,
) -> Pin<Box<dyn Future<Output = ToolResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes the tool with the given input and returns a result. Read more
Source§fn family(&self) -> ToolFamily
fn family(&self) -> ToolFamily
Returns the stable presentation family for this tool.
Source§fn permission_profile(&self, _input: &Value) -> Vec<ToolPermissionFacet>
fn permission_profile(&self, _input: &Value) -> Vec<ToolPermissionFacet>
Returns the permission facets touched by this concrete invocation. Read more
fn summary_fields(&self) -> &'static [&'static str]
Executes with concrete authorizations produced by a permission-aware
composition root. Read more
Executes with concrete authorizations and returns an output that
may carry a provider-neutral continuation artifact (ADR-051). Read more
Source§fn execute_with_output<'life0, 'async_trait>(
&'life0 self,
input: Value,
) -> Pin<Box<dyn Future<Output = ToolExecutionOutput> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn execute_with_output<'life0, 'async_trait>(
&'life0 self,
input: Value,
) -> Pin<Box<dyn Future<Output = ToolExecutionOutput> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Executes the tool and returns an output that may carry a
provider-neutral continuation artifact (ADR-051). Read more
Source§fn project_input(&self, input: &Value) -> Value
fn project_input(&self, input: &Value) -> Value
Returns the observer-safe form of a tool input. Read more
Source§fn project_result(&self, result: &ToolResult) -> ToolResultProjection
fn project_result(&self, result: &ToolResult) -> ToolResultProjection
Splits one execution result into model, display, and persistence views. Read more
Source§fn is_read_only(&self) -> bool
fn is_read_only(&self) -> bool
Returns whether this tool is read-only (does not modify external state). Read more
fn nature(&self) -> ToolNature
Source§fn is_always_on(&self) -> bool
fn is_always_on(&self) -> bool
Returns whether this tool belongs to the always-on presentation set.
Source§fn conditional_backends(&self) -> Vec<ToolBackend>
fn conditional_backends(&self) -> Vec<ToolBackend>
Returns conditional backends supported by this tool. Read more
Source§fn backend_for_input(&self, _input: &Value) -> Option<String>
fn backend_for_input(&self, _input: &Value) -> Option<String>
Returns the backend selected by this concrete input, if any. Read more
Source§fn description_for_backends(&self, _backends: &HashSet<String>) -> String
fn description_for_backends(&self, _backends: &HashSet<String>) -> String
Returns a model-facing description for the disclosed backend set.
Source§fn parameters_for_backends(&self, _backends: &HashSet<String>) -> Value
fn parameters_for_backends(&self, _backends: &HashSet<String>) -> Value
Returns an input schema for the disclosed backend set.
Source§fn provenance(&self) -> ToolProvenance
fn provenance(&self) -> ToolProvenance
Returns the provenance of this tool. Read more
Source§impl Clone for TodoUpdateTool
impl Clone for TodoUpdateTool
Source§fn clone(&self) -> TodoUpdateTool
fn clone(&self) -> TodoUpdateTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TodoUpdateTool
impl RefUnwindSafe for TodoUpdateTool
impl Send for TodoUpdateTool
impl Sync for TodoUpdateTool
impl Unpin for TodoUpdateTool
impl UnsafeUnpin for TodoUpdateTool
impl UnwindSafe for TodoUpdateTool
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