test: add structured output integration tests#588
Open
jsamuel1 wants to merge 1 commit intostrands-agents:mainfrom
Open
test: add structured output integration tests#588jsamuel1 wants to merge 1 commit intostrands-agents:mainfrom
jsamuel1 wants to merge 1 commit intostrands-agents:mainfrom
Conversation
34d8a8f to
ce99923
Compare
jsamuel1
added a commit
to jsamuel1/sdk-typescript
that referenced
this pull request
Mar 3, 2026
Combines the following feature branches: - feat/summarizing-conversation-manager (PR strands-agents#524) - feat/structured-output-integ-tests (PR strands-agents#588) - feat/interrupt-system (PR strands-agents#586) - feat/swarm-multi-agent (PR strands-agents#587) - feat/graph-multi-agent (PR strands-agents#594) All 1277 unit tests pass. No type errors.
ce99923 to
ced227a
Compare
Add integration tests for structured output with Zod schemas: - Test typed result matching zod schema via invoke() - Test structured output via streaming with stream() - Validates schema fields (string, number) and content correctness
ced227a to
72da482
Compare
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.
Description
Add integration tests for structured output with Zod schemas, validating the feature works end-to-end with real model providers.
Changes
agent.invoke()agent.stream()Testing
test/integ/agent.test.ts