Constructor for GetUserChoiceTool
Name of the tool
Description of the tool
Whether the tool is a long running operation, which typically returns a resource id first and finishes the operation later.
Whether the tool execution should be retried on failure
Maximum retry attempts
Base delay for retry in ms (will be used with exponential backoff)
Maximum delay for retry in ms
ProtectedloggerProtectedapiGets the API variant for this tool
Processes the outgoing LLM request for this tool.
Use cases:
The outgoing LLM request, mutable by this method
Executes the tool with error handling and retries
Arguments for the tool
Tool execution context
Result of the tool execution or error information
Execute the user choice action This is a long running operation that will return null initially and the actual choice will be provided asynchronously
Optionalquestion?: string
Tool that allows an agent to get a choice from the user