mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
f7b655ae33
- ctx.Abort(): cancel current agent turn and clear queue without injecting a new message (App.Abort + App.IsBusy methods) - ctx.IsIdle(): check whether the agent is currently processing - ctx.Compact(CompactConfig): trigger async context compaction with OnComplete/OnError callbacks (App.CompactAsync method) - ctx.SendMultimodalMessage(text, []FilePart): send text+image messages to the agent, bridging ext.FilePart to fantasy.FilePart via RunWithFiles - ctx.GetSessionUsage() SessionUsage: expose aggregated session token usage and cost from the UsageTracker New types: CompactConfig, FilePart, SessionUsage Wired in both context setups in cmd/root.go with nil-guard defaults in runner.go and Yaegi symbol exports in symbols.go