pub struct CodePlan;Expand description
Evolution planning tool
Implementations§
Trait Implementations§
Source§impl Tool for CodePlan
impl Tool for CodePlan
Source§fn name(&self) -> &str
fn name(&self) -> &str
Unique identifier used by the LLM to invoke this tool (e.g.
"file_read").Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable summary sent to the LLM as part of the tool definition.
Source§fn schema(&self) -> Value
fn schema(&self) -> Value
JSON Schema describing the expected argument object. Must include
"type": "object"
and a "required" array for mandatory fields; validated before execution by
validate_tool_arguments_schema.Source§fn execute<'life0, 'async_trait>(
&'life0 self,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the tool with the given arguments and return a JSON result.
The result is injected into the conversation as the tool’s response.
Source§fn is_readonly(&self) -> bool
fn is_readonly(&self) -> bool
Returns true if this tool only reads data, never modifies. Read more
Source§fn is_destructive(&self) -> bool
fn is_destructive(&self) -> bool
Returns true if this tool can cause data loss (rm, overwrite, etc.) Read more
Source§fn risk_level(&self) -> RiskLevel
fn risk_level(&self) -> RiskLevel
Returns the risk level for this tool. Read more
Source§fn metadata(&self) -> ToolMetadata
fn metadata(&self) -> ToolMetadata
Returns the full safety metadata for this tool. Read more
Auto Trait Implementations§
impl Freeze for CodePlan
impl RefUnwindSafe for CodePlan
impl Send for CodePlan
impl Sync for CodePlan
impl Unpin for CodePlan
impl UnsafeUnpin for CodePlan
impl UnwindSafe for CodePlan
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request