adk-typescript
Version:
TypeScript port of Google's Agent Development Kit (ADK)
25 lines (24 loc) • 731 B
TypeScript
import { FunctionTool } from './FunctionTool';
import { ToolContext } from './ToolContext';
/**
* Tool for loading web page content
*/
export declare class LoadWebPageTool extends FunctionTool {
/**
* Creates a new load web page tool
*/
constructor();
}
/**
* Fetches content from a URL and returns the text content
*
* @param params Parameters for the function
* @param params.url URL to load content from
* @param context The tool context
* @returns The text content of the web page
*/
export declare function loadWebPage(params: Record<string, any>, context: ToolContext): Promise<string>;
/**
* Singleton instance of the Load Web Page tool
*/
export declare const loadWebPageTool: LoadWebPageTool;