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
..
2026-01-12 06:01:31 +05:30
2026-01-10 20:44:23 +11:00
2026-01-10 20:34:14 +11:00
2026-01-12 07:21:40 +05:30
2026-01-10 13:43:04 +11:00
2025-12-22 16:27:35 +11:00
2026-01-10 13:43:04 +11:00
2026-01-12 05:13:02 +05:30