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

Function WithScope

pkg/memory/logic/types.go:130–134  ·  view source on GitHub ↗

WithScope 按作用域过滤

(scope MemoryScope)

Source from the content-addressed store, hash-verified

128
129// WithScope 按作用域过滤
130func WithScope(scope MemoryScope) Filter {
131 return func(opts *FilterOptions) {
132 opts.Scope = scope
133 }
134}
135
136// WithMinConfidence 按最低置信度过滤
137func WithMinConfidence(confidence float64) Filter {

Callers 5

listMethod · 0.92
SearchByScopeMethod · 0.85
TestInMemoryStore_ListFunction · 0.85
SearchByScopeMethod · 0.85
SearchByScopeMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestInMemoryStore_ListFunction · 0.68