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, pub requires_approval: bool,
#[serde(default)] #[serde(default)]
pub version: String, 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 { impl ToolDefinition {
@ -31,8 +35,8 @@ impl ToolDefinition {
pub fn to_short_doc(&self) -> String { pub fn to_short_doc(&self) -> String {
format!( format!(
"- {}: {} (parameters: {})\n", "- {}: {}\n",
self.name, self.description, self.parameters self.name, self.description
) )
} }