Skip to content
tnsaiDocs
GitHub

Tutorials

End-to-end walkthroughs. Each tutorial takes a real scenario and builds a working agent from scratch.

Complete, runnable walkthroughs

  • Reusable Capabilities: Compose Summarizer, Translator, and SentimentClassifier onto an editorial role with zero method bodies.
  • REST API actions with @WebService: Bind any REST endpoint to an LLM-callable action through annotations alone. GET + query, path templating, POST + body + custom headers, retry.
  • Declarative Guardrails: Validate, sanitise, and bound action parameters and return values through @InputGuardrail / @OutputGuardrail annotations, no per-action plumbing.
  • Declarative RAG with @Knowledge: Declare knowledge on a Role and ground the actions that name it through annotations alone, no manual vector-store plumbing.
  • Declarative Resilience: Wrap action dispatch with structured tracing, latency + counter metrics, and automatic recovery via @Traced / @Metered / @Fallback.
  • Research Agent: Agent that searches the web, reads PDFs, and produces cited summaries.