fix: openclaw translateAndRegister uses full tool name for LLM visibility

This commit is contained in:
JianFeeeee
2026-07-10 13:55:03 +08:00
parent 3f7783af7c
commit ae762bf4ca
30 changed files with 4724 additions and 45 deletions

View File

@ -0,0 +1,14 @@
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"`
}