Simplify TUI SDK event rendering

This commit is contained in:
0xallam
2026-04-26 11:53:20 -07:00
parent eee65eec9e
commit fb3cf6a6c4
11 changed files with 251 additions and 359 deletions
+4 -7
View File
@@ -250,14 +250,11 @@ def make_child_factory(
interactive: bool = False,
system_prompt_context: dict[str, Any] | None = None,
) -> Any:
"""Return a callable suitable for ``ctx.context['agent_factory']``.
"""Return the runner-owned builder used by ``spawn_child_agent``.
The ``create_agent`` graph tool reads
``ctx.context['agent_factory']`` and calls it with ``name=`` and
``skills=`` to build a child ``Agent``. Run-level arguments
(``scan_mode``, ``is_whitebox``, etc.) are captured in a closure so
each child inherits the scan-level configuration without
``create_agent`` having to know about them.
Run-level arguments (``scan_mode``, ``is_whitebox``, etc.) are
captured in a closure so each child inherits scan-level configuration
without the graph tool knowing about runner internals.
"""
def _factory(*, name: str, skills: list[str]) -> SandboxAgent[Any]: