Skip to content

Colocate conversation public types - #222

Closed
renal128 wants to merge 6 commits into
reshuffle-filesfrom
colocate-conversation-types
Closed

Colocate conversation public types#222
renal128 wants to merge 6 commits into
reshuffle-filesfrom
colocate-conversation-types

Conversation

@renal128

Copy link
Copy Markdown
Contributor

Summary

  • Merge DisconnectionReason into EndReason and collapse ConversationAgentReadyReport
  • Colocate CallInfo/EndReason with ConversationState, and session config types with ConversationConfig
  • Merge startup result/metrics/state into ConversationStartup.swift

Test plan

  • swiftformat --strict --lint .
  • swift build
  • swift test --filter ElevenLabsTests

Stacked on #219.

Made with Cursor

renal128 and others added 6 commits July 25, 2026 19:06
Use a single EndReason for ConversationState.ended and onDisconnect, and give endConversation one reason parameter.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the one-field wrapper with agentReady(elapsed:) on ConversationStartupState.

Co-authored-by: Cursor <cursoragent@cursor.com>
These types only exist as associated values of ConversationState; keep them in the same file and drop the Models junk-drawer entries.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move audio, WebRTC, startup, and agent-state configuration into ConversationConfig.swift so session knobs live in one file. Leave AgentState as a separate runtime type.

Co-authored-by: Cursor <cursoragent@cursor.com>
Colocate ConversationStartupState, ConversationStartupMetrics, and ConversationStartResult in one file.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@renal128

Copy link
Copy Markdown
Contributor Author

Duplicate of #223 — closing in favor of that PR.

@renal128 renal128 closed this Jul 25, 2026
@renal128
renal128 deleted the colocate-conversation-types branch July 25, 2026 18:23
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.

1 participant