TotalApp Docs

Agentic AI Settings

Fine-tune token budgets, model behaviour, guardrails, and AI usage limits for the agentic pipeline and workflow execution engine.

AI Usage Limits

These settings cap how many resources the AI engine may consume per session or per day, preventing runaway costs from long-running pipelines.

OptionDescription
Max tokens per requestHard limit on the number of output tokens generated per individual AI call. Requests that would exceed this are truncated.
Max requests per sessionTotal number of AI calls allowed within a single browser session. Prevents unintended loops.
Daily token budgetAggregate token ceiling across all AI calls per calendar day. Resets at midnight UTC.

Agent Behaviour

OptionValuesDescription
Retry on failure0 – 5How many times to automatically retry a failed AI call before surfacing an error to the user.
Temperature0.0 – 1.0Controls output creativity. Lower values produce more deterministic, factual text. Higher values introduce more variation and creativity.
StreamingOn / OffWhen enabled, AI output streams token-by-token so the user sees text appearing in real time rather than waiting for the full response.
Enable loggingOn / OffLogs every AI request and response to the server log file. Useful for debugging but increases disk usage.

Temperature guide

For factual tasks (data summaries, code analysis) keep temperature at 0.2 – 0.4. For creative writing (blog posts, stories) raise it to 0.7 – 0.9.

Guardrails

Guardrails add a layer of safety between raw user input / AI output and the rest of the application.

GuardrailDescription
Input sanitisationStrips potentially harmful patterns (prompt injection attempts, HTML script tags) from user input before it is sent to the AI model.
Output validationChecks AI-generated content against a blocklist of prohibited terms. Blocked responses are replaced with a safe fallback message.
PII detectionScans AI output for patterns that look like personal data (email addresses, phone numbers, credit card numbers) and redacts them before display.

Note

Guardrails add a small latency overhead per request. Disable PII detection only if your prompts and outputs are guaranteed to contain no personal data.

AI Engine Selection

Choose which AI model is used for agentic workflow steps. This is separate from the Terminal Writer Engine — it applies to workflow node execution, task analysis, and assistant panels.

EngineDescription
Hosted API (default)Calls the Anthropic Claude API (claude-sonnet-4-6) via the server. Requires ANTHROPIC_API_KEY in the server environment.
Local CLIUses the locally installed claude CLI binary. Suitable when API access is restricted.
Local LLMUses an on-device BERT model. Supports classification tasks only — generation is not available.

Embedding Models (Ollama)

The Embedding Engine section of this tab lets you download and select local Ollama models used for Semantic Search and knowledge ranking — separate from the text-generation engine above.

See also

For a summary of all Agentic engines and models, see Agentic Overview. For how TotalApp connects to Ollama, see Ollama Integration. For the catalog of downloadable Ollama text-generation models, see Local Language Models. For models that run entirely inside the browser tab (WebGPU/WASM, no Ollama required), see In-Browser Models. For hosted cloud providers (Anthropic, OpenAI, Google, DeepSeek, Groq, and more), see Cloud LLM Models. For the full catalog of available embedding models, recommended starting points, and download instructions, see Embedded Models.

FAQ

Does the daily token budget reset at my local midnight or UTC?
It resets at midnight UTC, regardless of the user's timezone setting. Plan heavy batch operations accordingly.
What happens when the daily token budget is exhausted?
All AI calls return an error message stating the budget has been reached. The budget resets automatically at midnight UTC — no manual reset is required.
Does enabling logging store the content of AI responses?
Yes — full request and response payloads are written to the server log. Disable logging if your prompts contain sensitive business data you do not want persisted on disk.