tinyagent-ts
Version:
Modern TypeScript framework for building AI agents with pluggable tools and ReAct reasoning
48 lines (47 loc) • 1.2 kB
TypeScript
import { Agent } from "../src/agent";
declare module 'duck-duck-scrape' {
function search(query: string, options?: {
maxResults?: number;
safeSearch?: boolean;
}): Promise<{
results: Array<{
url: string;
}>;
}>;
}
export declare class StockResearchTools {
stockQuote({ symbol }: {
symbol: string;
}): Promise<{
symbol: string;
price: number | undefined;
changePercent: number | undefined;
marketCap: number | undefined;
}>;
topNewsUrl({ query }: {
query: string;
}): Promise<string>;
fetchPage({ url, maxLength, }: {
url: string;
maxLength: number;
}): Promise<string>;
}
export declare class StockResearchAgent extends Agent {
private tools;
constructor();
stockQuote(args: {
symbol: string;
}): Promise<{
symbol: string;
price: number | undefined;
changePercent: number | undefined;
marketCap: number | undefined;
}>;
topNewsUrl(args: {
query: string;
}): Promise<string>;
fetchPage(args: {
url: string;
maxLength: number;
}): Promise<string>;
}