feat(agent-runner): normalize binding config boundaries

This commit is contained in:
huanghuoguoguo
2026-06-02 15:40:57 +08:00
parent 93cd852061
commit 4d4ccfabd5
8 changed files with 185 additions and 108 deletions
@@ -1,4 +1,5 @@
"""Tests for agent runner config migration."""
from __future__ import annotations
@@ -155,6 +156,7 @@ class TestResolveRunnerConfig:
'local-agent': {
'model': 'uuid-123',
'max_round': 10,
'knowledge-base': 'kb-123',
},
},
}
@@ -163,7 +165,8 @@ class TestResolveRunnerConfig:
pipeline_config,
'plugin:langbot/local-agent/default',
)
assert config == {'model': 'uuid-123', 'max_round': 10}
assert config == {'model': 'uuid-123', 'max_round': 10, 'knowledge-bases': ['kb-123']}
assert 'knowledge-base' not in config
def test_resolve_no_config(self):
"""Resolve runner config when not found."""