Sponsored by Deepsite.site

Agentica

Created By
Wrtnlabs8 months ago
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.
Content

Agentica Logo

Agentica

npm version Downloads License Badge Discord

Agentic AI Framework specialized in LLM Function Calling
enhanced by TypeScript compiler skills

agentica-conceptual-diagram


Homepage // Documentation // Tutorials // Playground


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.

🚀 Key Features

  • ✅ 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.

⚡ Quickstart

Step 1. Setup Agentica project

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

Step 2. Create your own AI agent

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");

Step 3. Run your agent

Let's play with your agent!

npm run build
npm run start # 🎉

🌟 Why Choose Agentica?

Traditional LLM frameworks struggle with structured outputs:

Problem AreaVanilla 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

📚 Documentation & Tutorials & Paper


💬 Community & Support


👐 Contributing

We welcome contributions from the community! Check out our CONTRIBUTING.md to get started.


⚖️ License

Agentica is open-source and available under the MIT License.



Wrtn Technologies Logo

Agentica is proudly developed and maintained by [Wrtn Technologies](https://wrtnlabs.io).
Empowering developers to build reliable and structured AI agents effortlessly.

Recommend Clients
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Refact.aiOpen-source AI Agent for VS Code and JetBrains that autonomously solves coding tasks end-to-end.
Roo Code (prev. Roo Cline)Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor.
MCP ConnectEnables cloud-based AI services to access local Stdio based MCP servers via HTTP requests
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
BACHAI-TWITTER-API45Twitter的一些api mcp
ZedCode at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
HyperChatHyperChat is a Chat client that strives for openness, utilizing APIs from various LLMs to achieve the best Chat experience, as well as implementing productivity tools through the MCP protocol.
A Sleek AI Assistant & MCP Client5ire is a cross-platform desktop AI assistant, MCP client. It compatible with major service providers, supports local knowledge base and tools via model context protocol servers .
CursorThe AI Code Editor
y-cli 🚀A Tiny Terminal Chat App for AI Models with MCP Client Support
chatmcpChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
MCP PlaygroundCall MCP Server Tools Online
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
ChatWiseThe second fastest AI chatbot™
Continue⏩ Create, share, and use custom AI code assistants with our open-source IDE extensions and hub of models, rules, prompts, docs, and other building blocks
LutraLutra is the first MCP compatible client built for everyone
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic
Cherry Studio🍒 Cherry Studio is a desktop client that supports for multiple LLM providers.
Cline – #1 on OpenRouterAutonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.