package agentsvc import ( "testing" "gitea.mynodes.xyz/ilker/llmgw/internal/agent/engines" "gitea.mynodes.xyz/ilker/llmgw/internal/control/reconciler" ) func TestAdaptersTravelToTheAgentInOrder(t *testing.T) { cmd := reconciler.ShardCommand{ReplicaID: "r", ShardID: "s", Spec: engines.ShardSpec{ Profile: engines.Profile{Name: "cpu", Engine: "llamacpp", ModelPath: "/m.gguf", Adapters: []engines.Adapter{{Name: "sql", Path: "http://mirror/sql.gguf"}, {Name: "docs", Path: "http://mirror/docs.gguf"}}}, }} spec, _ := ShardSpecFromStart(StartShardFromCommand(cmd)) got := spec.Profile.Adapters if len(got) != 2 || got[0].Name != "sql" || got[1].Path != "http://mirror/docs.gguf" { t.Errorf("adapters %+v", got) } }