Merged
Conversation
…trands-agents#657) Co-authored-by: Harry Wilton <fhwilton@amazon.com>
…rands-agents#643) Previously (strands-agents#642) bedrock would hang during message conversion because the exception was not being caught and thus the queue was always empty. Now all exceptions during conversion are caught Co-authored-by: Mackenzie Zastrow <zastrowm@users.noreply.github.com>
* feat: add structured_output_span
…nts#678) It depends on OpenAI and we a got a report about the need to install it explicitly Co-authored-by: Mackenzie Zastrow <zastrowm@users.noreply.github.com>
…ents#531) * feat: add cached token metrics support for Amazon Bedrock - Add optional cacheReadInputTokens and cacheWriteInputTokens fields to Usage TypedDict - Update EventLoopMetrics to accumulate cached token metrics - Add OpenTelemetry instrumentation for cached token telemetry - Enhance metrics summary display to show cached token information - Maintain 100% backward compatibility with existing Usage objects - Add comprehensive test coverage for cached token functionality Resolves strands-agents#529 * feat: updated cached read/write input token metrics --------- Co-authored-by: poshinchen <pschen@amazon.com>
…nds-agents#568) * fix: fix non-serializable parameter of agent from toolUse block * feat: Add configuration option to MCP Client for server init timeout (strands-agents#657) Co-authored-by: Harry Wilton <fhwilton@amazon.com> * fix: Bedrock hang when exception occurs during message conversion (strands-agents#643) Previously (strands-agents#642) bedrock would hang during message conversion because the exception was not being caught and thus the queue was always empty. Now all exceptions during conversion are caught Co-authored-by: Mackenzie Zastrow <zastrowm@users.noreply.github.com> * fix: only include parameters that defined in tool spec --------- Co-authored-by: Jack Yuan <jackypc@amazon.com> Co-authored-by: fhwilton55 <81768750+fhwilton55@users.noreply.github.com> Co-authored-by: Harry Wilton <fhwilton@amazon.com> Co-authored-by: Mackenzie Zastrow <3211021+zastrowm@users.noreply.github.com> Co-authored-by: Mackenzie Zastrow <zastrowm@users.noreply.github.com>
Co-authored-by: jer <jerebill@amazon.com>
….0 (strands-agents#706) Updates the requirements on [pre-commit](https://github.com/pre-commit/pre-commit) to permit the latest version. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v3.2.0...v4.3.0) --- updated-dependencies: - dependency-name: pre-commit dependency-version: 4.3.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…trands-agents#704) * ci: update ruff requirement from <0.5.0,>=0.4.4 to >=0.4.4,<0.13.0 Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@v0.4.4...0.12.9) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.12.9 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Apply suggestions from code review Co-authored-by: Patrick Gray <pgrayy@amazon.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonathan Segev <jsegev01@gmail.com> Co-authored-by: Patrick Gray <pgrayy@amazon.com>
….0,<1.2.0 (strands-agents#708) * ci: update pytest-asyncio requirement Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](pytest-dev/pytest-asyncio@v0.26.0...v1.1.0) --- updated-dependencies: - dependency-name: pytest-asyncio dependency-version: 1.1.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Apply suggestions from code review Co-authored-by: Patrick Gray <pgrayy@amazon.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonathan Segev <jsegev01@gmail.com> Co-authored-by: Patrick Gray <pgrayy@amazon.com>
…messages (strands-agents#709) * fix: add system_prompt to structured_output_span before adding input_messages * test: Add system message ordering validation to agent structured output test * Switch to ensuring exact ordering of messages --------- Co-authored-by: Dennis Tsai (RD-AS) <dennis_tsai+tmemu@trendmicro.com> Co-authored-by: Mackenzie Zastrow <zastrowm@users.noreply.github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v4...v5) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…trands-agents#728) * fix: prevent path traversal for message_id in file_session_manager * fix: prevent path traversal for message_id in session managers * fix: prevent path traversal for message_id in session managers
* fix: fix swarm session management integ test. * share thread context (strands-agents#1146) * async hooks (strands-agents#1119) * fix: remove debug lines --------- Co-authored-by: Patrick Gray <pgrayy@amazon.com>
…trands-agents#1231) * fix(mcp): protect connection on non-fatal client side timeout error * remove empty _MCP_CLIENT.md * remove print statements * remove test
…t_token not cache_creation_tokens (strands-agents#1233)
…ands-agents#1213) --------- Co-authored-by: Dean Schmigelski <dbschmigelski+github@gmail.com>
Introduce bidirectional streaming capabilities to Strands SDK, enabling real-time voice and audio conversations with AI models through persistent streaming connections. Bidirectional streaming moves beyond traditional request-response patterns by maintaining long-running conversations where users can interrupt, provide continuous input, and receive real-time audio responses. This implementation is marked as experimental as we refine the API based on user feedback and evolving model capabilities. --------- Co-authored-by: Murat Kaan Meral <murmeral@amazon.nl> Co-authored-by: Patrick Gray <pgrayy@amazon.com>
…nds-agents#1280) --------- Co-authored-by: John Tristan <trjohnb@amazon.com>
…manager (strands-agents#1274) * Remove toolUse message when its missing due to pagination in session manager
strands-agents#1290) * fix(agent): Return structured output JSON when AgentResult has no text When AgentResult has no text content but structured_output is present, __str__() now returns the JSON serialization of the structured output instead of an empty string. This fixes output propagation in multi-agent graphs where structured output was being lost. Changes: - Modified AgentResult.__str__() to fall back to structured_output.model_dump_json() - Added unit test test__str__empty_message_with_structured_output to verify fix - All existing tests pass, maintaining backward compatibility strands-agents#1118
We keep getting warnings about odd indentation; this takes care of that Co-authored-by: Mackenzie Zastrow <zastrowm@users.noreply.github.com>
…1125) The AfterInvocationEvent hook event did not provide access to the AgentResult, making it difficult for hooks to perform actions based on the outcome of an agent's invocation. This PR updates the AfterInvocationEvent to include an optional AgentResult. The Agent.invoke method now captures the AgentResult and passes it to the AfterInvocationEvent. New tests have been added to verify the functionality and immutability of the event.
--------- Co-authored-by: David Padbury <padbury@amazon.com> Co-authored-by: Dean Schmigelski <dbschmigelski+github@gmail.com>
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
Related Issues
Documentation PR
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
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.