Async mode (default)
The call still waits for a normal API round trip.
Sync mode
- You are running an evaluation.
- The work runs in the background.
- Current-turn context matters more than response time.
Change the timeout
timeoutMs applies to each request attempt. A timeout is treated as a transient
failure and can be retried up to maxRetries. If no attempt succeeds,
turnContext() returns "".
Recommendation
Start withasync for user-facing chat. Choose sync only when you have a
specific need for current-turn context.