Generate response from LLM. Args: messages: List of conversation messages tools: Optional list of Tool objects or dicts Returns: LLMResponse containing the generated content, thinking, and tool calls
(
self,
messages: list[Message],
tools: list[Any] | None = None,
)
| 39 | |
| 40 | @abstractmethod |
| 41 | async def generate( |
| 42 | self, |
| 43 | messages: list[Message], |
| 44 | tools: list[Any] | None = None, |
| 45 | ) -> LLMResponse: |
| 46 | """Generate response from LLM. |
| 47 | |
| 48 | Args: |
| 49 | messages: List of conversation messages |
| 50 | tools: Optional list of Tool objects or dicts |
| 51 | |
| 52 | Returns: |
| 53 | LLMResponse containing the generated content, thinking, and tool calls |
| 54 | """ |
| 55 | pass |
| 56 | |
| 57 | @abstractmethod |
| 58 | def _prepare_request( |
no outgoing calls
no test coverage detected