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

Method complete

core/src/tools/skill.rs:415–426  ·  view source on GitHub ↗
(
            &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

Calls 2

removeMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected