Share image input across agent vendors
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user