Method
complete
(
&self,
_messages: &[Message],
_system: Option<&str>,
_tools: &[ToolDefinition],
)
Source from the content-addressed store, hash-verified
| 94 | #[async_trait] |
| 95 | impl LlmClient for MockStructuredClient { |
| 96 | async fn complete( |
| 97 | &self, |
| 98 | _messages: &[Message], |
| 99 | _system: Option<&str>, |
| 100 | _tools: &[ToolDefinition], |
| 101 | ) -> anyhow::Result<LlmResponse> { |
| 102 | let mut responses = self.responses.lock().unwrap(); |
| 103 | if responses.is_empty() { |
| 104 | anyhow::bail!("No more mock responses"); |
| 105 | } |
| 106 | Ok(responses.remove(0)) |
| 107 | } |
| 108 | |
| 109 | async fn complete_streaming( |
| 110 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected