Checkpoint commit covering concurrent work across several archie-core-abg epics to avoid losing in-progress state: - Memory manager (18.7-18.16): background sync pipeline, prefetch with timeout, memory-write notification, threat scanning, shutdown drain with abandoned-write tracking, frozen snapshot pattern. Wired ScanContent and NotifyMemoryToolWrite into HandleToolCall so scanning and notification actually apply to writes, not just exist as unused primitives. - Fixed a literal unresolved merge-conflict that had been committed to internal/memory/scrubber/scrubber.go. - Tool provider/registry, MCP client/transport (stdio, HTTP, SSE), multimodal results, disclosure. - Pairing device auth store, rate limiting. - Gateway compression, session store, tasks. - Various workflow, plugin host, and agentexec updates.
26 lines
1.2 KiB
Go
26 lines
1.2 KiB
Go
package tools
|
|
|
|
// MultimodalResult wraps a tool result that includes non-text content
|
|
// (images, audio, video, documents). Summary is the text fed back into
|
|
// the model's context; the actual media is written to files under
|
|
// SubdirHint rather than inlined as base64, since inlining media into
|
|
// the context window would bloat token usage for content the model
|
|
// cannot directly consume anyway.
|
|
type MultimodalResult struct {
|
|
// IsMultimodal is always true for this type; present so a JSON
|
|
// consumer can distinguish a MultimodalResult from a plain string
|
|
// result without type-sniffing.
|
|
IsMultimodal bool `json:"is_multimodal"`
|
|
// Summary is the text description shown to the model -- any text
|
|
// content blocks from the tool result, or a default note when the
|
|
// result is media-only.
|
|
Summary string `json:"summary"`
|
|
// SubdirHint is the directory the media files were written under,
|
|
// relative to the caller's configured media root. Empty when no
|
|
// media root was configured, so the files could not be persisted.
|
|
SubdirHint string `json:"subdir_hint,omitempty"`
|
|
// Files lists the full paths written under SubdirHint, in the order
|
|
// the source content blocks appeared.
|
|
Files []string `json:"files,omitempty"`
|
|
}
|