Skip to main content

Module provider

Module provider 

Source
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 task tool invocation fires in the main chat, the matching sub-agent file’s turns are populated onto a DelegatedWork.

Functions§

native_name
Reverse of tool_category: pick Gemini’s preferred native tool name for a generic ToolCategory, using the call’s args to disambiguate when multiple Gemini tools share the same category.
to_turn
Convert a single GeminiMessage into a Turn. Does not perform any cross-message sub-agent assembly; call to_view for that.
to_view
Convert a Gemini Conversation into a ConversationView.
tool_category
Classify a Gemini CLI tool name into toolpath’s category ontology.