Behavior
How your agent talks, streams, and remembers.
Pages
- Prompt Strategies — System prompt templates, role composition, example injection.
- Output Parsing — Structured output with
chatWithFormat, retries, validation. - Streaming —
streamChatWithTools, chunk types, event flow. - Variants — Quality, speed, cost tiers on a single agent.
- Memory — Conversation history, window management, summarization.
Actions vs Tools
TnsAI has three overlapping extension points. They are not interchangeable.
Prompt Strategies
TnsAI includes a prompt enhancement system that applies proven prompting techniques to improve LLM response quality. The system is built around the PromptStrategy enum, PromptEnhancer builder, and EnhancedPrompt output.