Planning & Tools

This commit is contained in:
Alex Emmet 2026-05-26 22:41:38 +02:00
commit b12a673078

View file

@ -15,6 +15,10 @@ pub struct ToolDefinition {
pub requires_approval: bool,
#[serde(default)]
pub version: String,
/// Whether this tool requires a project context to function.
/// Project-scoped tools are filtered out when no project is selected.
#[serde(default)]
pub project_scoped: bool,
}
impl ToolDefinition {
@ -31,8 +35,8 @@ impl ToolDefinition {
pub fn to_short_doc(&self) -> String {
format!(
"- {}: {} (parameters: {})\n",
self.name, self.description, self.parameters
"- {}: {}\n",
self.name, self.description
)
}