Skip to content

Conversation

@ao-anam
Copy link
Contributor

@ao-anam ao-anam commented Oct 31, 2025

Summary by cubic

Convert WebRTC client tool call events to a camelCase public ClientToolEvent, ensuring a consistent API shape for consumers. StreamingClient now converts and emits the public event while keeping the internal WebRTC event for internal listeners.

  • Refactors

    • Added ToolCallManager to convert WebRtcClientToolEvent -> ClientToolEvent.
    • StreamingClient emits InternalEvent.WEBRTC_CLIENT_TOOL_EVENT_RECEIVED with WebRtcClientToolEvent, then emits AnamEvent.CLIENT_TOOL_EVENT_RECEIVED with ClientToolEvent.
    • ClientToolEvent fields changed to camelCase; removed used_outside_engine.
    • Updated InternalEventCallbacks to use WebRtcClientToolEvent for the internal event.
  • Migration

    • Update consumers to use camelCase fields: eventUid, sessionId, eventName, eventData, timestamp, timestampUserAction, userActionCorrelationId.
    • used_outside_engine is no longer present on the public ClientToolEvent.

Written for commit f3cc5a2. Summary will update automatically on new commits.

@ao-anam ao-anam merged commit 86cb958 into harry/client-events Oct 31, 2025
1 check passed
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants