agsamantha/node_modules/@langchain/community/dist/tools/dadjokeapi.d.ts

16 lines
538 B
TypeScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
import { Tool } from "@langchain/core/tools";
/**
* The DadJokeAPI class is a tool for generating dad jokes based on a
* specific topic. It fetches jokes from an external API and returns a
* random joke from the results. If no jokes are found for the given
* search term, it returns a message indicating that no jokes were found.
*/
declare class DadJokeAPI extends Tool {
static lc_name(): string;
name: string;
description: string;
/** @ignore */
_call(input: string): Promise<string>;
}
export { DadJokeAPI };