Share image input across agent vendors
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"g.fc.run/ai/byre/internal/agentinput"
|
||||
"g.fc.run/ai/byre/internal/mcp"
|
||||
"g.fc.run/ai/byre/internal/procgroup"
|
||||
)
|
||||
@@ -427,12 +428,7 @@ func (s *Session) ID() string {
|
||||
return s.id
|
||||
}
|
||||
|
||||
type Image struct {
|
||||
MediaType string
|
||||
Data []byte
|
||||
}
|
||||
|
||||
func (s *Session) Send(text string, images ...Image) error {
|
||||
func (s *Session) Send(text string, images ...agentinput.Image) error {
|
||||
var content any = text
|
||||
if len(images) > 0 {
|
||||
blocks := []map[string]any{}
|
||||
|
||||
Reference in New Issue
Block a user