lints fixed
This commit is contained in:
@@ -527,8 +527,10 @@ class EventLoopNode(NodeProtocol):
|
||||
if ctx.default_skill_batch_nudge:
|
||||
from framework.skills.defaults import is_batch_scenario as _is_batch
|
||||
|
||||
_input_text = (ctx.goal_context or "") + " " + " ".join(
|
||||
str(v) for v in ctx.input_data.values() if v
|
||||
_input_text = (
|
||||
(ctx.goal_context or "")
|
||||
+ " "
|
||||
+ " ".join(str(v) for v in ctx.input_data.values() if v)
|
||||
)
|
||||
if _is_batch(_input_text):
|
||||
system_prompt = f"{system_prompt}\n\n{ctx.default_skill_batch_nudge}"
|
||||
|
||||
@@ -232,9 +232,7 @@ class TestConfigOverrideSubstitution:
|
||||
|
||||
def test_context_preservation_override_threshold(self):
|
||||
config = SkillsConfig.from_agent_vars(
|
||||
default_skills={
|
||||
"hive.context-preservation": {"warn_at_usage_ratio": 0.4}
|
||||
}
|
||||
default_skills={"hive.context-preservation": {"warn_at_usage_ratio": 0.4}}
|
||||
)
|
||||
manager = DefaultSkillManager(config)
|
||||
manager.load()
|
||||
@@ -301,9 +299,7 @@ class TestContextWarnRatio:
|
||||
|
||||
def test_override_ratio(self):
|
||||
config = SkillsConfig.from_agent_vars(
|
||||
default_skills={
|
||||
"hive.context-preservation": {"warn_at_usage_ratio": 0.3}
|
||||
}
|
||||
default_skills={"hive.context-preservation": {"warn_at_usage_ratio": 0.3}}
|
||||
)
|
||||
manager = DefaultSkillManager(config)
|
||||
manager.load()
|
||||
|
||||
Reference in New Issue
Block a user