Share image input across agent vendors

This commit is contained in:
Ian Gulliver
2026-10-21 15:48:21 -07:00
parent 06987c1989
commit 8e865e69b2
6 changed files with 27 additions and 48 deletions
+2 -6
View File
@@ -20,6 +20,7 @@ import (
"syscall"
"time"
"g.fc.run/ai/byre/internal/agentinput"
"g.fc.run/ai/byre/internal/mcp"
"g.fc.run/ai/byre/internal/procgroup"
)
@@ -43,11 +44,6 @@ type Options struct {
OnBadLine func(line []byte, reason string)
}
type Image struct {
MediaType string
Data []byte
}
type Event struct {
Kind string
Raw json.RawMessage
@@ -460,7 +456,7 @@ type block struct {
Text string `json:"text"`
}
func (s *Session) Send(text string, images ...Image) error {
func (s *Session) Send(text string, images ...agentinput.Image) error {
s.mu.Lock()
defer s.mu.Unlock()