Core Concepts
Define Workflows
Define type-safe workflows and node behavior with Kortyx core contracts.
Formats (TS, YAML, JSON)
Author workflows in TypeScript, YAML, or JSON and understand how Kortyx loads each format.
Nodes
Understand Kortyx nodes, input flow, params, state handoff, and node return values.
Conditional Routing
Route between workflow nodes with condition tokens, edge matching, loops, and transitions.
createAgent
Set up createAgent with strict workflow/runtime config and explicit provider wiring in nodes.
streamChat
Use agent.streamChat for flexible route handling, then return SSE or buffered JSON.
Hooks
Practical guide to when each hook is useful and how structured streaming works in real node logic.
Runtime Context
Pass request metadata from clients and routes into node code without mixing it with user input or node params.