← Về thư mục
openai4s/server/completions.py
- response_language · function · L47-L49 — def response_language(text: Any) -> str
- cancellation_marker · function · L58-L72 — def cancellation_marker(reason: str, language: str = "en") -> str
- action_narration · function · L75-L137 — def action_narration(action: Action | None, language: str = "en") -> str
- outcome_narration · function · L140-L193 — def outcome_narration( action: Action | None, outcome: Any, language: str = "en", *, had_public_prose: bool = False, ) -> str
- completion_message · function · L196-L250 — def completion_message( completion: Any, artifacts: Iterable[dict] = (), *, previous_text: str = "", language: str = "en", require_fallback: bool = True, trusted_delivery: bool = False, ) -> str
- _summary_text · function · L253-L266 — def _summary_text(output: Any) -> str
- _fallback_output_text · function · L269-L281 — def _fallback_output_text(output: Any) -> str
- _first_value · function · L284-L291 — def _first_value(output: Any, keys: tuple[str, ...]) -> Any
- _structured_body · function · L294-L306 — def _structured_body(value: Any) -> str
- _compact_value · function · L309-L314 — def _compact_value(value: Any) -> str
- _error_headline · function · L317-L337 — def _error_headline(observation: str) -> str
- _section_line_count · function · L340-L353 — def _section_line_count(observation: str, marker: str) -> int
- _summary_already_visible · function · L356-L366 — def _summary_already_visible(output: Any, summary: str, previous: str) -> bool
- _artifact_lines · function · L369-L396 — def _artifact_lines( artifacts: Iterable[dict], *, trusted_delivery: bool = False ) -> list[str]
- _normalized · function · L399-L400 — def _normalized(value: str) -> str