mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-12-01 12:13:24 +01:00
Delete the Eino model adapters, callbacks, middleware, orchestration, summarization and single-agent runner together with their dependencies. Chat, batch tasks, workflow Agent nodes and sub-agents now share the Pi runtime, and dispatch is a single code path instead of an engine switch. Configuration migrates eino_middleware/eino_skills to runtime/skills and drops the retired callback settings while old files still load. Settings, i18n and docs describe Pi only. Also carry the Pi follow-up fixes: empty required lists are omitted from tool schemas, historical tool results stay with their call batch, model proxies work over HTTP/1.1, single-query retrieval skips query expansion, and finalization docs match Pi lifecycle events.
23 lines
754 B
Go
23 lines
754 B
Go
package config
|
|
|
|
import (
|
|
"gopkg.in/yaml.v3"
|
|
"testing"
|
|
)
|
|
|
|
func TestLegacyRuntimeSettingsAreReadWithoutLegacyEngine(t *testing.T) {
|
|
var cfg Config
|
|
if err := yaml.Unmarshal([]byte("multi_agent:\n eino_middleware:\n model_retry_max_retries: 7\n eino_skills:\n disable: true\n"), &cfg); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if cfg.MultiAgent.Runtime.ModelRetryMaxRetries != 7 || !cfg.MultiAgent.Skills.Disable {
|
|
t.Fatal("migration lost settings")
|
|
}
|
|
if err := yaml.Unmarshal([]byte("multi_agent:\n runtime:\n model_retry_max_retries: 2\n eino_middleware:\n model_retry_max_retries: 7\n"), &cfg); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if cfg.MultiAgent.Runtime.ModelRetryMaxRetries != 2 {
|
|
t.Fatal("legacy settings overrode native settings")
|
|
}
|
|
}
|