mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
initial tool call stream
This commit is contained in:
parent
2b5a33e476
commit
2de5127417
11 changed files with 261 additions and 136 deletions
|
@ -7,13 +7,6 @@ import (
|
|||
|
||||
const bufferSize = 1024
|
||||
|
||||
type Logger interface {
|
||||
Debug(msg string, args ...any)
|
||||
Info(msg string, args ...any)
|
||||
Warn(msg string, args ...any)
|
||||
Error(msg string, args ...any)
|
||||
}
|
||||
|
||||
// Broker allows clients to publish events and subscribe to events
|
||||
type Broker[T any] struct {
|
||||
subs map[chan Event[T]]struct{} // subscriptions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue