adk-typescript
Version:
TypeScript port of Google's Agent Development Kit (ADK)
25 lines (24 loc) • 831 B
TypeScript
import { LongRunningFunctionTool } from './LongRunningTool';
import { ToolContext } from './ToolContext';
/**
* Function to get user choice from a list of options
*
* @param params Parameters for the function
* @param params.options List of options to present to the user
* @param context The tool context
* @returns null (the actual response will be sent asynchronously)
*/
export declare function getUserChoice(params: Record<string, any>, context: ToolContext): Promise<string | null>;
/**
* Tool for collecting user choice from a list of options
*/
export declare class GetUserChoiceTool extends LongRunningFunctionTool {
/**
* Creates a new get user choice tool
*/
constructor();
}
/**
* Singleton instance of the Get User Choice tool
*/
export declare const getUserChoiceTool: GetUserChoiceTool;