Protected ReadonlypreferencesProtected ReadonlypreferenceProtectedsessionIn-memory session overrides (not persisted), per chat
Clear all session overrides for a specific chat, or all if no chatId is given
OptionalchatId: stringGet all tool confirmation settings
Get the confirmation mode for a specific tool, considering session overrides first (per chat).
For tools with confirmAlwaysAllow flag:
The tool identifier
The chat session identifier
OptionaltoolRequest: ToolRequest<ToolInvocationContext>Optional ToolRequest to check for confirmAlwaysAllow flag
Set the confirmation mode for a specific tool (persisted)
The tool identifier
The confirmation mode to set
OptionaltoolRequest: ToolRequest<ToolInvocationContext>Optional ToolRequest to check for confirmAlwaysAllow flag
Set the confirmation mode for a specific tool for this session only (not persisted, per chat)
Utility class to manage tool confirmation settings