tinyagent-ts
Version:
Modern TypeScript framework for building AI agents with pluggable tools and ReAct reasoning
20 lines (19 loc) • 529 B
TypeScript
import { MultiStepAgent } from '../src/multiStepAgent';
/**
* Example of a ReAct agent that demonstrates the Thought → Action → Observation loop
* using JSON tool calls.
*/
export declare class ReActAgent extends MultiStepAgent<string> {
/**
* Simple echo tool that returns the input text
*/
echo({ text }: {
text: string;
}): string;
/**
* Simple calculator tool that evaluates a math expression
*/
calculate({ expression }: {
expression: string;
}): string;
}