The SDK lifecycle
TypeScript calls use
await. Python also offers AsyncZelinqaClient with async with and await. See the complete quickstart.
Resume after an interruption
Persistsession.id in your backend when the session is created. These examples assume a configured client and a saved_session_id or savedSessionId variable read from your storage.
- Python
- TypeScript
state_version, decision_id, and question_id for business calls. The state version advances with the session: it is not the domain’s published version.
Continue or finish
action: "ask": a question is available.warningsmay containobjective_achieved: your application decides whether to conclude or continue.action: "stop": the turn limit is reached (stop_reason: "max_turns_reached") or no question is available (no_question_available); do not expect a candidate.
- Python
- TypeScript