initial tool call stream

This commit is contained in:
Kujtim Hoxha 2025-04-19 16:35:45 +02:00
parent 2b5a33e476
commit 2de5127417
11 changed files with 261 additions and 136 deletions

View file

@ -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