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

Method complete_structured

core/src/llm/openai.rs:497–506  ·  view source on GitHub ↗
(
        &self,
        messages: &[Message],
        system: Option<&str>,
        tools: &[ToolDefinition],
        directive: &structured::StructuredDirective,
    )

Source from the content-addressed store, hash-verified

495 }
496
497 async fn complete_structured(
498 &self,
499 messages: &[Message],
500 system: Option<&str>,
501 tools: &[ToolDefinition],
502 directive: &structured::StructuredDirective,
503 ) -> Result<LlmResponse> {
504 self.send_request(self.build_chat_request(messages, system, tools, Some(directive)))
505 .await
506 }
507
508 fn native_structured_support(&self) -> structured::NativeStructuredSupport {
509 structured::NativeStructuredSupport::JsonSchema

Callers

nothing calls this directly

Calls 2

build_chat_requestMethod · 0.80
send_requestMethod · 0.45

Tested by

no test coverage detected