Skip to content

feat(daemon): emit subagent invoke_agent spans via weave SDK SubAgent#77

Draft
rgao-coreweave wants to merge 1 commit into
migrate-sdk/toolfrom
migrate-sdk/subagent
Draft

feat(daemon): emit subagent invoke_agent spans via weave SDK SubAgent#77
rgao-coreweave wants to merge 1 commit into
migrate-sdk/toolfrom
migrate-sdk/subagent

Conversation

@rgao-coreweave

@rgao-coreweave rgao-coreweave commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Migrate subagent invoke_agent spans from startInvokeAgentSpan to the SDK SubAgent (turn.startSubagent(...)), and parent subagent-spawned tools and chat under it via subAgent.startTool / startLLM. Includes the cross-session agent-teams correlation (TeammateIdle, team-member registry) re-expressed on the SDK SubAgent.

Companion SDK PR: wandb/weave#7077 (SubAgent child factories).

Test plan

  • npm run build
  • npm test (incl. teammate-idle daemon integration tests)

rgao-coreweave commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Replace the raw startInvokeAgentSpan helper with turn.startSubagent(...).
Subagent-spawned tools now nest under the SubAgent via subAgent.startTool.
Collapse the PendingToolCall discriminated union into the SDK-only form
since all tool spans now go through weave.Tool. Delete turnUnderlyingSpan;
introduce parentUnderlyingSpan as the temporary chat-emission bridge for
both Turn and SubAgent parents, removed in PR #6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant