Agentic AI Framework specialized in LLM Function Calling
enhanced by TypeScript compiler skills
Agentica is an open-source framework that makes working with AI agents simple and reliable. It helps you integrate structured function calls with Large Language Models (LLMs) without the usual headaches.
Built around Typia's robust JSON Schema validation, Agentica eliminates the common frustrations of building agent systems - no more dealing with unpredictable outputs or complex integration challenges.
- β Schema-Driven Reliability: Automatically validates and corrects parameters from LLMs.
- π Automatic Error Correction: Feedback loops to iteratively improve output accuracy.
- π Complex Parameter Support: Easily handle union types, nested objects, and recursive schemas.
- π OpenAPI Integration: Convert existing APIs into powerful agent capabilities effortlessly.
- π¨βπ» Exceptional Developer Experience: TypeScript-first approach with automatic schema generation.
- π οΈModel Context Protocol(MCP) Support: Seamlessly integrate with various LLMs, including Claude Desktop, Cursor, and more.
For more details, check out the Getting Started guide.
You can create a new Agentica project using the following command:
# npm
npx agentica@latest start
# yarn
yarn agentica start
# pnpm
pnpx agentica start
# bun
bunx agentica start
Open src/index.ts
and create your own agent.
Agentica accepts TypeScript types and OpenAPI specifications as input. You can use any of the following:
- TypeScript Types: Define your own types and let Agentica generate the OpenAPI spec for you, powered by Typia.
- OpenAPI Specification: Use an existing OpenAPI spec to create an agent. Agentica converts it for tool calling!
- Custom Controllers: Create your own controllers to extend Agentica's functionality.
import { Agentica } from "@agentica/core";
import typia from "typia";
const agent = new Agentica({
controllers: [
await fetch(
"https://shopping-be.wrtn.ai/editor/swagger.json",
).then(r => r.json()),
typia.llm.application<ShoppingCounselor>(),
typia.llm.application<ShoppingPolicy>(),
typia.llm.application<ShoppingSearchRag>(),
],
});
await agent.conversate("I wanna buy a MacBook Pro");
Let's play with your agent!
npm run build
npm run start # π
Traditional LLM frameworks struggle with structured outputs:
Problem Area | Vanilla LLMs | β Agentica |
---|---|---|
Parameter Validation | β Poor reliability | β JSON Schema-driven |
Complex Data Handling | β Struggles | β Robust Typia support |
Error Correction | β Manual | β Auto-correcting loop |
Integration Complexity | β High effort | β Seamless OpenAPI |
We welcome contributions from the community! Check out our CONTRIBUTING.md to get started.
Agentica is open-source and available under the MIT License.
Empowering developers to build reliable and structured AI agents effortlessly.