MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _extract_text_from_gemini_content

Function _extract_text_from_gemini_content

src/api/routes.py:248–252  ·  view source on GitHub ↗
(content: Optional[GeminiContent])

Source from the content-addressed store, hash-verified

246
247
248def _extract_text_from_gemini_content(content: Optional[GeminiContent]) -> str:
249 if content is None:
250 return ""
251 text_parts = [part.text.strip() for part in content.parts if part.text]
252 return "\n".join(part for part in text_parts if part).strip()
253
254
255def _should_ignore_media_system_instruction(system_instruction: str) -> bool:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected