Skip to main content

Module result

Module result 

Source
Expand description

Split tool results: Dual-channel output for LLM and UI

Implements Phase 4 of pi-coding-agent integration:

  • LLM content: Concise summaries optimized for token efficiency
  • UI content: Rich output with full details for user display

Expected savings: 20-30% on tool-heavy sessions (97% on tool output tokens)

Structsยง

TokenCounts
Token counting for split tool results
ToolMetadata
Metadata accompanying tool results
ToolMetadataBuilder
Builder for ToolMetadata
ToolResult
Result from tool execution with dual-channel output