MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / GeminiPart

Class GeminiPart

src/models.py:125–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124# Gemini Models
125class GeminiPart(BaseModel):
126 text: Optional[str] = None
127 inlineData: Optional[Dict[str, Any]] = None
128 fileData: Optional[Dict[str, Any]] = None
129 thought: Optional[bool] = None # 改为 None,避免序列化时包含 False
130
131 class Config:
132 extra = "allow" # 允许额外字段(如 functionCall, functionResponse)
133
134
135class GeminiContent(BaseModel):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected