tinyagent-ts
Version:
Modern TypeScript framework for building AI agents with pluggable tools and ReAct reasoning
17 lines • 538 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
require("dotenv/config");
const math_agent_1 = require("../examples/math-agent");
(async () => {
const agent = new math_agent_1.MathAgent();
const q = "What is 3 multiplied by 4?";
try {
const answer = await agent.run(q);
console.log("Agent reply:", answer);
}
catch (err) {
const msg = err instanceof Error ? err.message : String(err);
console.error("Error:", msg);
}
})();
//# sourceMappingURL=ta.js.map