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

Method complete

core/src/llm/anthropic.rs:274–282  ·  view source on GitHub ↗
(
        &self,
        messages: &[Message],
        system: Option<&str>,
        tools: &[ToolDefinition],
    )

Source from the content-addressed store, hash-verified

272#[async_trait]
273impl LlmClient for AnthropicClient {
274 async fn complete(
275 &self,
276 messages: &[Message],
277 system: Option<&str>,
278 tools: &[ToolDefinition],
279 ) -> Result<LlmResponse> {
280 self.send_request(self.build_request(messages, system, tools))
281 .await
282 }
283
284 async fn complete_structured(
285 &self,

Callers

nothing calls this directly

Calls 2

build_requestMethod · 0.80
send_requestMethod · 0.45

Tested by

no test coverage detected