Guide

Agentic Workflows

Learn a practical loop for plan/act/observe cycles with model-based decisions and deterministic tool handlers.

1. Keep a structured state object for task, tools, and intermediate results.

2. Use a system prompt that enforces JSON tool-call output format.

3. Execute tool calls server-side, append tool responses, and continue the loop.

4. Stop when completion criteria are met or max steps is reached.

Back to Docs