Expand description
Implementation of toolpath-convo traits for Gemini CLI conversations.
Key differences from the Claude implementation:
- Gemini stores tool results inline on the same message as the call, so there’s no cross-message “tool-result-only” assembly pass.
- Sub-agent work lives in sibling chat files inside the same session
UUID directory. When a
tasktool invocation fires in the main chat, the matching sub-agent file’s turns are populated onto aDelegatedWork.
Functions§
- native_
name - Reverse of
tool_category: pick Gemini’s preferred native tool name for a genericToolCategory, using the call’sargsto disambiguate when multiple Gemini tools share the same category. - to_turn
- Convert a single
GeminiMessageinto aTurn. Does not perform any cross-message sub-agent assembly; callto_viewfor that. - to_view
- Convert a Gemini
Conversationinto aConversationView. - tool_
category - Classify a Gemini CLI tool name into toolpath’s category ontology.