Add sub-agent response text to Python traces#121
Merged
Conversation
sebzhao
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This updates the Python trace schema so nested Python APA traces can preserve the actual text returned by sub-agent calls, and so GUI custom-agent child traces can be parsed without losing their nested
childrensubtree.What changed
texttoPythonSubAgentCallEventinnarada-coremodels and typed dicts.childrentoRunCustomAgentTraceso frontend/product traces that use the GUI custom-agent shape are accepted by the SDK trace model.narada-pyodidetracing emission sowindow.agent(...)records the returned response text alongsiderequest_id, status, and nested action trace.narada-core:0.0.24narada-pyodide:0.0.53narada:0.1.53a3Why
The local nested APA and GUI trace investigations showed two information-loss bugs:
children, which the current SDK model did not parse.Both made observability look incomplete even when the underlying agent call worked.
Validation
uv run pytest packages/narada-pyodide/tests/test_cloud_browser.py -q— 12 passeduv run ruff check packages/narada-core packages/narada-pyodide packages/naradapython -m py_compileover changed SDK packagesuv build --package narada-coreuv build --package narada-pyodideuv build --package naradaRepresentative artifact root:
/tmp/narada-e2e-runs/20260513T013044Z-trace-completeness-trace-complete-local-20260513t013044z