Skip to main content

Client setup


Movie booking workflow

This example shows a returning user requesting a booking. The agent retrieves hard facts, soft facts, and past experience before responding — all through the SDK.

Action → Outcome flow

Log an action with its result, completing the episode when the goal is done:

Polling for action suggestions

Ask the Policy Guide what the agent should do next, then execute the recommendation:

Sharing strategies across agents

Find successful strategies from one agent and apply them to another:

Complete agent loop

A full agent loop that combines memory, strategy, claims, and event logging:
Always wrap your agent loop in a try/finally and call client.flush() to prevent queued events from being lost.

Using the Sidecar for intent extraction

Combine the Sidecar parser with the event builder to log structured intents: