Enforce lifecycle completion in non-interactive runs

This commit is contained in:
0xallam
2026-04-26 12:06:06 -07:00
parent 1d0da89090
commit e8b172bd2a
2 changed files with 138 additions and 16 deletions
+5
View File
@@ -236,6 +236,11 @@ def build_strix_agent(
instructions=instructions,
tools=tools,
tool_use_behavior=_finish_tool_use_behavior,
# Autonomous Strix runs must keep forcing tool calls after each
# tool result; otherwise the SDK resets tool_choice to auto and a
# plain-text model response can become final output before
# finish_scan / agent_finish.
reset_tool_choice=False,
# model=None so ``RunConfig.model`` drives provider selection
# via :func:`build_multi_provider` rather than the SDK's default.
model=None,