Skip to Content
SDKsRubyErrors and Envelope

Ruby Errors and Envelope

The SDK keeps language-native ergonomics while preserving raw wire-level semantics.

Ruby

ResponseEnvelope = Struct.new(:data, :meta, :error, keyword_init: true) do
  def session_id = meta[:sessionId]
end

Canonical Wire Rules

  • JSON keys are always camelCase on the wire
  • SDK aliases may expose snake_case or PascalCase accessors
  • Raw envelope remains available for diagnostics and logging

See Response Envelope for complete field semantics.

Last updated on