refactor(types): Phase 4 type hint sweep — core modules
This commit is contained in:
@@ -6,7 +6,7 @@ import os
|
||||
import session_logger # Import session_logger
|
||||
|
||||
class GeminiCliAdapter:
|
||||
def __init__(self, binary_path="gemini"):
|
||||
def __init__(self, binary_path: str = "gemini") -> None:
|
||||
self.binary_path = binary_path
|
||||
self.last_usage = None
|
||||
self.session_id = None
|
||||
@@ -23,7 +23,7 @@ class GeminiCliAdapter:
|
||||
estimated_tokens = total_chars // 4
|
||||
return estimated_tokens
|
||||
|
||||
def send(self, message, safety_settings=None, system_instruction=None, model: str = None):
|
||||
def send(self, message: str, safety_settings: list | None = None, system_instruction: str | None = None, model: str | None = None) -> str:
|
||||
"""
|
||||
Sends a message to the Gemini CLI and processes the streaming JSON output.
|
||||
Logs the CLI call details using session_logger.log_cli_call.
|
||||
|
||||
Reference in New Issue
Block a user