agent: Only require confirmation for batch tool when subset of tool calls require confirmation (#28363)
Release Notes: - agent: Only require confirmation for batch tool when subset of tool calls require confirmation
This commit is contained in:
parent
ef4b5b0698
commit
47eaf274d6
23 changed files with 33 additions and 24 deletions
|
@ -48,7 +48,7 @@ pub trait Tool: 'static + Send + Sync {
|
|||
|
||||
/// Returns true iff the tool needs the users's confirmation
|
||||
/// before having permission to run.
|
||||
fn needs_confirmation(&self) -> bool;
|
||||
fn needs_confirmation(&self, input: &serde_json::Value, cx: &App) -> bool;
|
||||
|
||||
/// Returns the JSON schema that describes the tool's input.
|
||||
fn input_schema(&self, _: LanguageModelToolSchemaFormat) -> serde_json::Value {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue