MCPcopy Create free account
hub / github.com/astercloud/aster / MockLLMProvider

Struct MockLLMProvider

pkg/memory/consolidation_test.go:12–16  ·  view source on GitHub ↗

MockLLMProvider 模拟 LLM 提供者。

Source from the content-addressed store, hash-verified

10
11// MockLLMProvider 模拟 LLM 提供者。
12type MockLLMProvider struct {
13 Response string
14 Error error
15 CallCount int
16}
17
18func (m *MockLLMProvider) Complete(ctx context.Context, prompt string, options map[string]any) (string, error) {
19 m.CallCount++

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected