MCPcopy Create free account
hub / github.com/AI45Lab/Code / complete

Method complete

core/src/llm/structured_tests.rs:96–107  ·  view source on GitHub ↗
(
        &self,
        _messages: &[Message],
        _system: Option<&str>,
        _tools: &[ToolDefinition],
    )

Source from the content-addressed store, hash-verified

94#[async_trait]
95impl 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

Calls 3

removeMethod · 0.80
popMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected