mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-10-03 15:53:56 +00:00
- Separate built-in plugin interface from external plugin interface - Route dynamic plugin loading through homeagent-sdk/sdk using reflection - Turn internal/sdk into an enhanced wrapper over canonical SDK types - Vendor SDK repo snapshot under third_party/homeagent-sdk for stable builds - Keep internal constructors/adapters for memory, knowledge, llm, settings - Align dynamic QQ loading with canonical SDK chain
15 lines
347 B
Go
15 lines
347 B
Go
package sdk
|
|
|
|
// KnowledgeAPI provides access to the knowledge store.
|
|
type KnowledgeAPI interface {
|
|
Search(query string, topK int) ([]*Knowledge, error)
|
|
Add(name, content string) error
|
|
List() ([]string, error)
|
|
}
|
|
|
|
// Knowledge represents a knowledge entry.
|
|
type Knowledge struct {
|
|
Name string `json:"name"`
|
|
Content string `json:"content"`
|
|
}
|