feat(agent-runner): align protocol adapter terminology

This commit is contained in:
huanghuoguoguo
2026-05-24 09:13:15 +08:00
parent 32e42f04ea
commit cc911cc413
26 changed files with 471 additions and 342 deletions

View File

@@ -4,8 +4,8 @@ from .. import truncator
import langbot_plugin.api.entities.builtin.pipeline.query as pipeline_query
from ....agent.runner.config_migration import ConfigMigration
from ....agent.runner.context_packager import (
get_legacy_max_round,
select_legacy_max_round_messages,
get_max_round,
select_max_round_messages,
)
@@ -21,9 +21,9 @@ class RoundTruncator(truncator.Truncator):
else:
runner_config = query.pipeline_config.get('msg-truncate', {}).get('round', {})
query.messages = select_legacy_max_round_messages(
query.messages = select_max_round_messages(
query.messages,
get_legacy_max_round(runner_config),
get_max_round(runner_config),
)
return query