Skip to content

Conversation

@hiroshihorie
Copy link
Member

Deleted the local AgentState enum and its export, updating audio_visualizer_widget.dart to use AgentState from the sdk package instead. This streamlines agent state management and reduces code duplication.

Deleted the local AgentState enum and its export, updating audio_visualizer_widget.dart to use AgentState from the sdk package instead. This streamlines agent state management and reduces code duplication.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the audio visualizer widget to use the AgentState provided by the SDK, eliminating the duplicate local definition.

  • Removed the local AgentState enum and its export in lib/src/types/agent_state.dart.
  • Updated audio_visualizer_widget.dart to reference sdk.AgentState and convert attributes via sdk.AgentAttributes.fromJson.
  • Removed the redundant export of the local AgentState in lib/livekit_components.dart.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
lib/src/ui/widgets/track/audio_visualizer_widget.dart Updated to use sdk.AgentState and sdk.AgentAttributes instead of the local enum.
lib/src/types/agent_state.dart Deleted the local AgentState definition.
lib/livekit_components.dart Removed export of the deleted local AgentState.

@hiroshihorie hiroshihorie merged commit b40b540 into main Jun 24, 2025
3 of 10 checks passed
@hiroshihorie hiroshihorie deleted the hiroshi/use-sdk-agentstate branch June 24, 2025 12:14
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