Skip to content

Allow grouping multiple tools under a single confirmation strategy #425

@sjrl

Description

@sjrl

It would be nice to support assigning one confirmation strategy to multiple tools to avoid duplicate configuration.

For example, we could allow confirmation_strategies to accept multiple tool names as a single key:

confirmation_strategies = {
    ("tool1", "tool2", "tool3"): BlockingConfirmationStrategy()
}

instead of currently needing

confirmation_strategies = {
    "tool1": BlockingConfirmationStrategy(),
    "tool2": BlockingConfirmationStrategy(),
    "tool3": BlockingConfirmationStrategy()
}

This would become especially verbose when you have lots of tools accessible to the Agent

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions