Skip to main content
Request context gives Averta stable identifiers for runtime decisions. Without it, decisions still run, but debugging is worse. Provider wrappers accept the same three values in runtime-native casing.

Field Semantics

If requestId or traceId is missing, the SDK generates one. It does not generate conversationId because only your app knows the conversation boundary. For a multi-turn agent, keep conversationId stable and rotate requestId per turn:
Create a fresh wrapped client when request context changes. The wrappers store options on the wrapped client, and wrapping the same client twice is rejected.

Dashboard Debugging

Use request context to answer operational questions:

Common Mistakes

  • Reusing one requestId for every turn in a conversation.
  • Omitting conversationId for multi-turn agents.
  • Creating request context in logs but not passing it into wrapOpenAI(...), wrap_openai(...), or wrapAnthropic(...).
  • Wrapping one long-lived provider client once and expecting per-request context to change later.