Prepare the request payload for the API. Args: messages: List of conversation messages tools: Optional list of available tools Returns: Dictionary containing the request payload
(
self,
messages: list[Message],
tools: list[Any] | None = None,
)
| 56 | |
| 57 | @abstractmethod |
| 58 | def _prepare_request( |
| 59 | self, |
| 60 | messages: list[Message], |
| 61 | tools: list[Any] | None = None, |
| 62 | ) -> dict[str, Any]: |
| 63 | """Prepare the request payload for the API. |
| 64 | |
| 65 | Args: |
| 66 | messages: List of conversation messages |
| 67 | tools: Optional list of available tools |
| 68 | |
| 69 | Returns: |
| 70 | Dictionary containing the request payload |
| 71 | """ |
| 72 | pass |
| 73 | |
| 74 | @abstractmethod |
| 75 | def _convert_messages(self, messages: list[Message]) -> tuple[str | None, list[dict[str, Any]]]: |
nothing calls this directly
no outgoing calls
no test coverage detected