Dhanji R. Prasanna
02799a8e69
refactor(g3-core): extract streaming helpers and simplify cache control logic
Readability improvements to g3-core/src/lib.rs:
- Extract format_tool_arg_value() to streaming.rs for tool argument display
- Extract format_read_file_summary() to streaming.rs for file read summaries
- Add format_tool_output_summary() helper for consistent output formatting
- Add get_provider_cache_control() helper to eliminate duplicated cache lookup
- Simplify cache control logic in execute_single_task and stream_completion_with_tools
- Add unit tests for all new streaming helpers
Results:
- lib.rs: 2979 → 2945 lines (34 lines saved)
- streaming.rs: 305 → 379 lines (74 lines added as reusable, tested helpers)
- All 155+ tests pass
Agent: carmack
2026-01-12 07:21:40 +05:30
..
2025-11-27 21:00:02 +11:00
2026-01-12 07:21:40 +05:30
2026-01-12 05:13:02 +05:30
2026-01-11 06:35:18 +08:00