← Về thư mục
- _tool_attr · function · L12-L15 — def _tool_attr(tool: Any, name: str, default: Any = None) -> Any
- _canonical_tool_specs · function · L18-L53 — def _canonical_tool_specs(tools: list[Any] | tuple[Any, ...] | None) -> list[dict]
- _parse_tool_arguments · function · L56-L72 — def _parse_tool_arguments(value: Any) -> tuple[str, dict | None, str | None]
- _normalized_tool_call · function · L75-L105 — def _normalized_tool_call( *, provider: str, ordinal: int, name: Any, arguments: Any, wire_id: Any = None, provider_meta: dict | None = None, ) -> dict
- _tool_result_text · function · L108-L114 — def _tool_result_text(content: Any) -> str
- _tool_result_object · function · L117-L129 — def _tool_result_object(content: Any, *, is_error: bool = False) -> dict
- _assistant_message · function · L132-L138 — def _assistant_message(content: str, tool_calls: list[dict], wire_state: dict) -> dict
- _history_tool_call · function · L141-L168 — def _history_tool_call(call: dict) -> dict
- _chat_tool_schema · function · L171-L180 — def _chat_tool_schema(spec: dict) -> dict
- _anthropic_tool_schema · function · L183-L189 — def _anthropic_tool_schema(spec: dict) -> dict
- _gemini_tool_schema · function · L192-L197 — def _gemini_tool_schema(spec: dict) -> dict
- _responses_tool_schema · function · L200-L207 — def _responses_tool_schema(spec: dict) -> dict
- _named_tool_choice · function · L210-L222 — def _named_tool_choice(tool_choice: Any) -> str | None
- _apply_chat_tools · function · L225-L240 — def _apply_chat_tools( payload: dict, specs: list[dict], tool_choice: Any, parallel_tool_calls: bool | None, ) -> None
- _apply_anthropic_tools · function · L243-L264 — def _apply_anthropic_tools( payload: dict, specs: list[dict], tool_choice: Any, parallel_tool_calls: bool | None, ) -> None
- _apply_gemini_tools · function · L267-L289 — def _apply_gemini_tools( payload: dict, specs: list[dict], tool_choice: Any, parallel_tool_calls: bool | None, ) -> None
- _apply_responses_tools · function · L292-L307 — def _apply_responses_tools( payload: dict, specs: list[dict], tool_choice: Any, parallel_tool_calls: bool | None, ) -> None