Skip to content

Conversation

@poshinchen
Copy link
Contributor

@poshinchen poshinchen commented Jul 14, 2025

Description

Add swarm and graph span.

  • task can either be str or list of contentBlock, and it'll be serialized in the span.event_attributes.

NOTE: graph output hasn't been added as it needs validations

Example output

Swarm: https://us.cloud.langfuse.com/project/cmbb4s57d01xiad07eex8qvrl/traces/86ea0dbb4fef507c20af024ff249fec9?timestamp=2025-07-14T14:56:32.189Z&display=details

Graph: https://us.cloud.langfuse.com/project/cmbb4s57d01xiad07eex8qvrl/traces/3336a722fe1f89beadd523d8931f9c0d?timestamp=2025-07-14T15:07:39.573Z&display=details

Type of Change

New feature

Testing

How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@poshinchen poshinchen requested review from a team and awsarron July 14, 2025 16:34
@poshinchen poshinchen marked this pull request as ready for review July 14, 2025 16:34
@poshinchen poshinchen force-pushed the feat/add-swarm-and-graph-spans branch from 470e45f to 8c28c2c Compare July 14, 2025 16:35
@poshinchen poshinchen requested a review from jer96 July 14, 2025 16:38
@poshinchen poshinchen force-pushed the feat/add-swarm-and-graph-spans branch from 8c28c2c to 7fe0817 Compare July 14, 2025 19:47
@poshinchen poshinchen requested review from a team and jer96 July 14, 2025 19:48
@poshinchen poshinchen merged commit 4001eb6 into strands-agents:main Jul 14, 2025
18 of 22 checks passed
@poshinchen poshinchen mentioned this pull request Jul 15, 2025
7 tasks
dbschmigelski pushed a commit to Ketansuhaas/sdk-python that referenced this pull request Jul 24, 2025
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.

2 participants