Remove gateway re-exports of messaging helpers with no callers, the unused DeltaFunc adapter, DefaultPersonas, NewStoreTaskCreator, the SortBySeq stub, and the in-memory session store that nothing constructs.
33 lines
682 B
Go
33 lines
682 B
Go
package gateway
|
|
|
|
import "github.com/samcharles93/archie-core/internal/domain/messaging"
|
|
|
|
// SummarizeToolParameters returns a bounded JSON shape of tool input.
|
|
func SummarizeToolParameters(input string) string {
|
|
return messaging.SummarizeToolParameters(input)
|
|
}
|
|
|
|
type toolCallRecorder struct {
|
|
next TurnStream
|
|
events []ToolCallEvent
|
|
}
|
|
|
|
func (r *toolCallRecorder) Delta(text string) {
|
|
if r.next != nil {
|
|
r.next.Delta(text)
|
|
}
|
|
}
|
|
|
|
func (r *toolCallRecorder) ToolCall(event ToolCallEvent) {
|
|
r.events = append(r.events, event)
|
|
if r.next != nil {
|
|
r.next.ToolCall(event)
|
|
}
|
|
}
|
|
|
|
func (r *toolCallRecorder) Media(event MediaEvent) {
|
|
if r.next != nil {
|
|
r.next.Media(event)
|
|
}
|
|
}
|