Guides

TramAI guides are organized into five groups. Whether you are getting started with your first typed AI service or hardening a production deployment, there is a guide for that.


Core Features

Foundational concepts and essential features every TramAI user should know.

GuideDescription
Why TramAI?Philosophy, positioning, and how TramAI compares to LangChain4j and Spring AI
Providers & RoutingConfigure provider modules, model routing, and fallback strategies
Structured OutputJSON schema generation, parsing, validation, and retry feedback loop
Tool CallingRegister and invoke tools within AI operations
StreamingStreaming responses from typed service interfaces
Spring BootAuto-configuration, property binding, and @AiTool bean discovery

Testing & Observability

Ensure correctness and visibility of AI operations in any environment.

GuideDescription
TestingMock providers, simulated failures, operation recording, and fluent assertions
ObservabilityOpenTelemetry traces and metrics for every AI call
CI IntegrationDeterministic testing in CI pipelines without network access

Production

Run TramAI in production with confidence — deployment, hardening, and operations.

GuideDescription
Production HardeningResilience, retry, circuit-breaking, caching, and token budgeting
Server ModeHTTP API surface for TramAI workflows
Platform OperationsConsolidated deployment and operations layer
SchedulingRecurring and cron-triggered workflow execution
Native ImageGraalVM native-image compilation for fast startup and low memory
TroubleshootingCommon issues, diagnostics, and solutions

Extending TramAI

Build custom integrations, interceptors, observers, and MCP tools.

GuideDescription
Custom ProvidersCreate provider modules for custom AI backends
Custom InterceptorsAdd cross-cutting behavior with the interceptor SPI
Custom ObserversImplement custom operation observers for monitoring
MCP IntegrationExpose TramAI workflows as MCP tools over stdio or SSE

Deep Dives

Architecture, design decisions, and internals for advanced users and contributors.

GuideDescription
Architecture OverviewHigh-level architecture and module layering
DesignDesign principles and key abstractions
Module DesignHow modules are structured and composed
OrchestrationTyped workflow orchestration with checkpoint/resume
Orchestration PersistencePersistence layer for checkpoint and memory data
Orchestrator VisionFuture direction of the orchestration system