Skip to content

refactor: event-driven architecture with unified Event#19

Merged
liut merged 1 commit into
mainfrom
feat/event-driven-architecture
May 9, 2026
Merged

refactor: event-driven architecture with unified Event#19
liut merged 1 commit into
mainfrom
feat/event-driven-architecture

Conversation

@liut
Copy link
Copy Markdown
Owner

@liut liut commented May 9, 2026

  • Add Event as the single communication primitive replacing StreamResult
  • Add Pusher callback type, eliminating goroutine+channel in SSE parsing
  • Upgrade StreamChat to return iter.Seq2[*Event, error] (both providers)
  • Add Runner.Persist() for unified history/usage/session persistence
  • Add HistoryStore/SessionStore interfaces with stores adapter
  • Add ToolResult to Event for tool execution visibility in event stream
  • Remove StreamResult type, goroutine+channel pattern, dead reserved fields
  • Consolidate handlers to use Runner.Persist() instead of direct store calls

…sist

- Add Event as the single communication primitive replacing StreamResult
- Add Pusher callback type, eliminating goroutine+channel in SSE parsing
- Upgrade StreamChat to return iter.Seq2[*Event, error] (both providers)
- Add Runner.Persist() for unified history/usage/session persistence
- Add HistoryStore/SessionStore interfaces with stores adapter
- Add ToolResult to Event for tool execution visibility in event stream
- Remove StreamResult type, goroutine+channel pattern, dead reserved fields
- Consolidate handlers to use Runner.Persist() instead of direct store calls
@liut liut merged commit e7bf9ba into main May 9, 2026
2 checks passed
@liut liut deleted the feat/event-driven-architecture branch May 9, 2026 17:39
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