MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / complete

Method complete

tests/rust_unit_tests/workflow_tests.rs:51–69  ·  view source on GitHub ↗
(
        &self,
        _request: graphbit_core::llm::LlmRequest,
    )

Source from the content-addressed store, hash-verified

49 }
50
51 async fn complete(
52 &self,
53 _request: graphbit_core::llm::LlmRequest,
54 ) -> graphbit_core::errors::GraphBitResult<graphbit_core::llm::LlmResponse> {
55 // Return a dummy response
56 Ok(graphbit_core::llm::LlmResponse {
57 content: "dummy response".to_string(),
58 usage: graphbit_core::llm::LlmUsage {
59 prompt_tokens: 10,
60 completion_tokens: 5,
61 total_tokens: 15,
62 },
63 finish_reason: graphbit_core::llm::FinishReason::Stop,
64 model: "dummy-model".to_string(),
65 tool_calls: vec![],
66 metadata: std::collections::HashMap::new(),
67 id: Some("dummy-id".to_string()),
68 })
69 }
70}
71
72// ---- Dummy agent for workflow execution tests (no external API) ----

Callers 15

test_openai_llmFunction · 0.45
test_openai_llm_failureFunction · 0.45
test_anthropic_llmFunction · 0.45
test_huggingface_llmFunction · 0.45
test_perplexity_llmFunction · 0.45
test_deepseek_llmFunction · 0.45
test_ollama_llmFunction · 0.45
test_togetherai_llmFunction · 0.45

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected