| 37 | type LLMClientFunc func(context.Context, []map[string]any, string) (string, error) |
| 38 | |
| 39 | type AutoCompactResult struct { |
| 40 | Summary string `json:"summary"` |
| 41 | OriginalTokens int `json:"original_tokens"` |
| 42 | SummaryTokens int `json:"summary_tokens"` |
| 43 | Success bool `json:"success"` |
| 44 | Error string `json:"error"` |
| 45 | } |
| 46 | |
| 47 | func GetString(m map[string]any, key string, defaultStr any) any { |
| 48 | if m == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected