toolconfirmation

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package provides an example console app for tool confirmation. The example shows requestVacationDays func which requires user confirmation. It uses ctx.ToolConfirmation() and ctx.RequestConfirmation() to define the confimation process. This is the example for most advanced scenario which gives the full control how to define confirmation flow. For simpler setup use `RequireConfirmation` or `RequireConfirmationProvider` in functiontool.Config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL