MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / build_llm_request_with_tools

Method build_llm_request_with_tools

python/src/workflow/executor.rs:840–850  ·  view source on GitHub ↗
(
        messages: Vec<graphbit_core::llm::LlmMessage>,
        llm_tools: &[graphbit_core::llm::LlmTool],
        node_config: &std::collections::HashMap<String, serde_json::Value>,
    )

Source from the content-addressed store, hash-verified

838 }
839
840 fn build_llm_request_with_tools(
841 messages: Vec<graphbit_core::llm::LlmMessage>,
842 llm_tools: &[graphbit_core::llm::LlmTool],
843 node_config: &std::collections::HashMap<String, serde_json::Value>,
844 ) -> graphbit_core::llm::LlmRequest {
845 let mut req = graphbit_core::llm::LlmRequest::with_messages(messages);
846 for tool in llm_tools {
847 req = req.with_tool(tool.clone());
848 }
849 Self::apply_node_llm_overrides(req, node_config)
850 }
851
852 async fn execute_llm_request_with_optional_stream(
853 llm_provider: &graphbit_core::llm::LlmProvider,

Callers

nothing calls this directly

Calls 2

with_toolMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected