mirror of
https://github.com/usestrix/strix.git
synced 2026-11-18 09:42:48 +00:00
feat(runner): plumb subagent_model through run_strix_scan to make_child_factory (#1339)
feat(runner): plumb subagent_model through run_strix_scan to make_child_factory (#1339)
This commit is contained in:
parent
d87a44abc4
commit
d0a61239b7
1 changed files with 10 additions and 8 deletions
|
|
@ -206,6 +206,7 @@ async def run_strix_scan(
|
|||
status_sink: StatusSink | None = None,
|
||||
mcp_connection_requests: list[McpConnectionRequest] | None = None,
|
||||
mcp_status_sink: McpStatusSink | None = None,
|
||||
subagent_model: str | None = None,
|
||||
) -> RunResultBase | None:
|
||||
"""Run or resume one Strix scan against a sandbox.
|
||||
|
||||
|
|
@ -502,14 +503,15 @@ async def run_strix_scan(
|
|||
)
|
||||
|
||||
child_agent_builder = make_child_factory(
|
||||
scan_mode=scan_mode,
|
||||
is_whitebox=is_whitebox,
|
||||
is_diff_scoped=is_diff_scoped,
|
||||
interactive=interactive,
|
||||
chat_completions_tools=chat_completions_tools,
|
||||
strict_tool_schemas=strict_tool_schemas,
|
||||
system_prompt_context=scope_context,
|
||||
)
|
||||
scan_mode=scan_mode,
|
||||
is_whitebox=is_whitebox,
|
||||
is_diff_scoped=is_diff_scoped,
|
||||
interactive=interactive,
|
||||
chat_completions_tools=chat_completions_tools,
|
||||
strict_tool_schemas=strict_tool_schemas,
|
||||
system_prompt_context=scope_context,
|
||||
subagent_model=subagent_model or scan_config.get("subagent_model"),
|
||||
)
|
||||
|
||||
async def spawn_child_agent(**kwargs: Any) -> dict[str, Any]:
|
||||
return await start_child_agent(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue