Skip to content

Conversation

pgrayy
Copy link
Member

@pgrayy pgrayy commented Jun 25, 2025

Description

We are currently working on support for an iterative async stream method on the agent class (#83). As part of this work, we want to yield structured output events. This is primarily done for consistency. This PR each model's structured_output function to a generator.

Related Issues

#83

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

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.

@pgrayy pgrayy requested review from Unshure and zastrowm June 25, 2025 19:00
zastrowm
zastrowm previously approved these changes Jun 25, 2025
Unshure
Unshure previously approved these changes Jun 25, 2025
@pgrayy pgrayy dismissed stale reviews from Unshure and zastrowm via 1bb3bb4 June 25, 2025 21:13
@pgrayy pgrayy merged commit 6e6064f into strands-agents:main Jun 25, 2025
12 checks passed
@pgrayy pgrayy deleted the async-structured-output branch June 25, 2025 21:30
zastrowm added a commit to zastrowm/sdk-python that referenced this pull request Jun 27, 2025
Mistral was merged after the latest iterator changes (strands-agents#291) so it didn't have the latest and greatest
zastrowm added a commit that referenced this pull request Jun 27, 2025
Mistral was merged after the latest iterator changes (#291) so it didn't have the latest and greatest

---------

Co-authored-by: Mackenzie Zastrow <[email protected]>
jsamuel1 pushed a commit to jsamuel1/sdk-python that referenced this pull request Jul 9, 2025
jsamuel1 pushed a commit to jsamuel1/sdk-python that referenced this pull request Jul 9, 2025
…#305)

Mistral was merged after the latest iterator changes (strands-agents#291) so it didn't have the latest and greatest

---------

Co-authored-by: Mackenzie Zastrow <[email protected]>
dbschmigelski pushed a commit to Ketansuhaas/sdk-python that referenced this pull request Jul 24, 2025
dbschmigelski pushed a commit to Ketansuhaas/sdk-python that referenced this pull request Jul 24, 2025
…#305)

Mistral was merged after the latest iterator changes (strands-agents#291) so it didn't have the latest and greatest

---------

Co-authored-by: Mackenzie Zastrow <[email protected]>
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.

3 participants