MCPcopy Index your code
hub / github.com/AI45Lab/Code / complete_structured

Method complete_structured

core/src/llm/structured_tests.rs:1525–1537  ·  view source on GitHub ↗
(
        &self,
        _messages: &[Message],
        _system: Option<&str>,
        tools: &[ToolDefinition],
        directive: &StructuredDirective,
    )

Source from the content-addressed store, hash-verified

1523 }
1524
1525 async fn complete_structured(
1526 &self,
1527 _messages: &[Message],
1528 _system: Option<&str>,
1529 tools: &[ToolDefinition],
1530 directive: &StructuredDirective,
1531 ) -> anyhow::Result<LlmResponse> {
1532 self.structured_calls
1533 .fetch_add(1, std::sync::atomic::Ordering::SeqCst);
1534 *self.last_directive.lock().unwrap() = Some(directive.clone());
1535 *self.last_tool_names.lock().unwrap() = tools.iter().map(|t| t.name.clone()).collect();
1536 self.pop()
1537 }
1538
1539 async fn complete_streaming_structured(
1540 &self,

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected