Planning & Tools
This commit is contained in:
parent
4bb7b92eac
commit
b12a673078
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue