mirror of
https://github.com/usestrix/strix.git
synced 2026-08-24 03:42:37 +02:00
Enforce lifecycle completion in non-interactive runs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user