Method
complete
(
&self,
_messages: &[Message],
_system: Option<&str>,
_tools: &[ToolDefinition],
)
Source from the content-addressed store, hash-verified
| 413 | #[async_trait] |
| 414 | impl LlmClient for MockLlmClient { |
| 415 | async fn complete( |
| 416 | &self, |
| 417 | _messages: &[Message], |
| 418 | _system: Option<&str>, |
| 419 | _tools: &[ToolDefinition], |
| 420 | ) -> Result<LlmResponse> { |
| 421 | let mut responses = self.responses.lock().unwrap(); |
| 422 | if responses.is_empty() { |
| 423 | anyhow::bail!("No more mock responses available"); |
| 424 | } |
| 425 | Ok(responses.remove(0)) |
| 426 | } |
| 427 | |
| 428 | async fn complete_streaming( |
| 429 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected