← Về thư mục
openai4s/llm/messages.py
- _is_parts · function · L11-L12 — def _is_parts(content: Any) -> bool
- _to_openai_content · function · L15-L28 — def _to_openai_content(content: Any) -> Any
- _to_anthropic_content · function · L31-L48 — def _to_anthropic_content(content: Any) -> Any
- _to_gemini_parts · function · L51-L70 — def _to_gemini_parts(content: Any) -> list[dict]
- _openai_messages · function · L73-L108 — def _openai_messages(messages: list[dict]) -> list[dict]
- _mid_timeline_text · function · L111-L113 — def _mid_timeline_text(content: str) -> str
- _mid_timeline_system · function · L116-L117 — def _mid_timeline_system(content: str) -> dict
- _anthropic_messages · function · L120-L181 — def _anthropic_messages(messages: list[dict]) -> tuple[str, list[dict]]
- flush_results · function · L125-L128 — def flush_results() -> None
- _gemini_contents · function · L184-L269 — def _gemini_contents(messages: list[dict]) -> tuple[str, list[dict]]
- flush_results · function · L190-L193 — def flush_results() -> None
- _responses_input · function · L272-L326 — def _responses_input(messages: list[dict]) -> tuple[str, list[dict]]
- _flatten_text · function · L329-L342 — def _flatten_text(content: Any) -> str