ollie/agent/state.go

25 lines
726 B
Go

package agent
import (
"ollie/backend"
)
// ResultTier classifies how long a tool result stays in the hot message list.
type ResultTier int
const (
TierHot ResultTier = iota // stays verbatim in messages (default)
TierWarm // summarized on next compaction pass
TierCold // immediately summarized at update time
)
// toolResult holds the output of a single tool call.
type toolResult struct {
ToolCallID string // may be empty (Ollama does not always set this)
Name string
Content string
ContentBlocks []backend.ContentBlock // image blocks extracted from tool output
IsError bool
Tier ResultTier // default TierHot; tools may self-classify
}