This is detailed usage documentation. New to Agentica? Start with the Quickstart or learn when to use agentic functions vs agents.
Using agentic
Agentic functions are stateless, decorator‑based functions implemented by the model; each call is independent. The de facto way to implement a agentic function is via the@agentic decorator.
When to use agentic functions
Agentic functions work best for completing simple, well-defined tasks that don’t benefit from maintaining context across multiple operations. For longer-running, multi-task, contextual problem solving, see Agents.The basics
Agentica’sagentic enables you to turn regular Python or TypeScript functions into agent-backed functions. Define a function with a descriptive prompt or docstring and simply call it like any other function.
Use your tools and types
Expose the full programmatic power of an SDK or API. No MCP server is required. Simply pass it into your agentic functionsscope.
You can also expose existing remote or local MCP tools by passing an MCP configuration path. See here for more information.
Prerequisites:
- Python: run
pip install artoruv add art - TypeScript: run
npm install figlet(or usepnpm,bun)