mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-10-03 07:43:58 +00:00
sdk: embed non-toolchain SDK in third_party, add NoMemory/Cleaner support
- Embed sdk/, example/, meta/, go.mod from homeagent-sdk (no .git)
- Core .gitignore excludes SDK toolchain: bin/, tools/, package/
- RegisterInputChannel + ChannelDef(NoMemory, Cleaner) in SDK
- IOManager input channel registry with GetInputChannelDef
- eventloop: apply channel Cleaner/NoMemory to interrupt text
- context engine: channelDefLookup applied in textForVector
- document store: ChannelCleaner param for archive functions
- All callers/adapters updated with ChannelDef{} default
This commit is contained in:
@ -23,8 +23,8 @@ func TestCutExact(t *testing.T) {
|
||||
{
|
||||
name: "chinese_sentence",
|
||||
text: "今天天气怎么样",
|
||||
min: 2,
|
||||
not: nil,
|
||||
min: 1, // "怎么样" 已加入停用词表
|
||||
not: []string{"怎么样"},
|
||||
},
|
||||
{
|
||||
name: "stop_words_removed",
|
||||
@ -47,8 +47,8 @@ func TestCutExact(t *testing.T) {
|
||||
{
|
||||
name: "qq_conversation",
|
||||
text: "今天天气怎么样 → 今天天气很好",
|
||||
min: 2,
|
||||
not: nil,
|
||||
min: 1, // "怎么样" "很" 已加入停用词表
|
||||
not: []string{"怎么样", "很好", "很"},
|
||||
},
|
||||
{
|
||||
name: "all_stop_words",
|
||||
|
||||
Reference in New Issue
Block a user