Skip to content
tnsaiDocs
GitHub

Agents

Build a single agent: give it a model, roles and actions, then make it reliable. Read the pages in this order.

Build

  1. Create an agent: AgentBuilder or an annotated class, then chat.
  2. Principal and authority: the two settings every agent needs.
  3. Roles and actions: what the agent can do.
  4. Actions and tools: choose between an action, a @Tool POJO, a built-in toolkit and an MCP tool.
  5. Capabilities: reuse a set of actions across roles.

Shape the output

Make it reliable