Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
dd76000
Use strands logo that looks good in dark & light mode (#505)
zastrowm Jul 21, 2025
24ccb00
deps(a2a): address interface changes and bump min version (#515)
jer96 Jul 22, 2025
6905342
ci: expose STRANDS_TEST_API_KEYS_SECRET_NAME to integration tests (#513)
dbschmigelski Jul 22, 2025
5a7076b
Don't re-run workflows on un/approvals (#516)
zastrowm Jul 22, 2025
9aba018
Fixing some typos in various texts (#487)
didier-durand Jul 22, 2025
040ba21
docs(readme): add hot reloading documentation for load_tools_from_dir…
cagataycali Jul 22, 2025
022ec55
ci: enable integ tests for anthropic, cohere, mistral, openai, writer…
dbschmigelski Jul 22, 2025
e597e07
Automatically flatten nested tool collections (#508)
zastrowm Jul 23, 2025
4f4e5ef
feat(a2a): support mounts for containerized deployments (#524)
jer96 Jul 23, 2025
b30e7e6
fix: include agent trace into tool for agent as tools (#526)
poshinchen Jul 23, 2025
8c55625
Support for Amazon SageMaker AI endpoints as Model Provider (#176)
dgallitelli Jul 28, 2025
3f4c3a3
fix: Remove leftover print statement from sagemaker model provider (#…
mehtarac Jul 28, 2025
bdc893b
[Feat] Update structured output error message (#563)
Unshure Jul 29, 2025
4e0e0a6
feat(mcp): retain structured content in the AgentTool response (#528)
dbschmigelski Jul 29, 2025
b13c5c5
feat(mcp): Add list_prompts, get_prompt methods (#160)
Ketansuhaas Jul 30, 2025
3d526f2
fix(deps): pin a2a-sdk>=0.2.16 to resolve #572 (#581)
minorun365 Jul 31, 2025
b56a4ff
chore: pin a2a to a minor version while it is still in beta (#586)
dbschmigelski Aug 1, 2025
8b1de4d
fix: uses new a2a snake_case for lints to pass (#591)
theagenticguy Aug 1, 2025
c85464c
fix(event_loop): raise dedicated exception when encountering max toke…
dbschmigelski Aug 1, 2025
34d499a
fix(telemetry): added mcp tracing context propagation (#569)
poshinchen Aug 5, 2025
09ca806
Change max_tokens type to int to match Anthropic API (#588)
vinc3m1 Aug 5, 2025
bf24ebf
feat: Add additional intructions for contributors to find issues that…
mehtarac Aug 6, 2025
297ec5c
feat(a2a): configurable request handler (#601)
jer96 Aug 6, 2025
ec5304c
chore(a2a): update host per AppSec recommendation (#619)
jer96 Aug 6, 2025
29b2127
fix(event_loop): ensure tool_use content blocks are valid after max_t…
dbschmigelski Aug 8, 2025
adac26f
fix(structured_output): do not modify conversation_history when promp…
dbschmigelski Aug 8, 2025
99963b6
feature(graph): Allow cyclic graphs (#497)
mkmeral Aug 11, 2025
72709cf
chore: request to include code snippet section (#654)
poshinchen Aug 11, 2025
8434409
feat: Add configuration option to MCP Client for server init timeout …
fhwilton55 Aug 12, 2025
49ff226
fix: Bedrock hang when exception occurs during message conversion (#643)
zastrowm Aug 13, 2025
0455756
feat: add structured_output_span (#655)
poshinchen Aug 13, 2025
1c7257b
litellm - set 1.73.1 as minimum version (#668)
pgrayy Aug 14, 2025
606f657
feat: expose tool_use and agent through ToolContext to decorated tool…
dbschmigelski Aug 14, 2025
8c63d75
session manager - prevent file path injection (#680)
pgrayy Aug 15, 2025
fbd598a
fix: only set signature in message if signature was provided by the m…
clareliguori Aug 18, 2025
ae74aa3
fix: Add openai dependency to sagemaker dependency group (#678)
zastrowm Aug 18, 2025
980a988
Have [all] group reference the other optional dependency groups by na…
zastrowm Aug 18, 2025
b1df148
fix: append blank text content if assistant content is empty (#677)
poshinchen Aug 18, 2025
cfcf93d
feat: add cached token metrics support for Amazon Bedrock (#531)
oaltagar-aws Aug 18, 2025
c087f18
fix: fix non-serializable parameter of agent from toolUse block (#568)
JackYPCOnline Aug 19, 2025
17ccdd2
chore: add .DS_Store to .gitignore (#681)
vawsgit Aug 19, 2025
ef18a25
feat(a2a): support A2A FileParts and DataParts (#596)
jer96 Aug 20, 2025
60dcb45
ci: update pre-commit requirement from <4.2.0,>=3.2.0 to >=3.2.0,<4.4…
dependabot[bot] Aug 20, 2025
b61a064
ci: update ruff requirement from <0.5.0,>=0.4.4 to >=0.4.4,<0.13.0 (#…
dependabot[bot] Aug 21, 2025
93d3ac8
ci: update pytest-asyncio requirement from <0.27.0,>=0.26.0 to >=0.26…
dependabot[bot] Aug 21, 2025
9397f58
fix: add system_prompt to structured_output_span before adding input_…
chengweitsai Aug 21, 2025
6ef6447
feat(multiagent): Add __call__ implementation to MultiAgentBase (#645)
mkmeral Aug 25, 2025
e4879e1
chore: Update pydantic minimum version (#723)
mehtarac Aug 25, 2025
c18ef93
tool executors (#658)
pgrayy Aug 25, 2025
dbe0fea
feat: Add support for agent invoke with no input, or Message input (#…
Unshure Aug 25, 2025
b156ea6
ci: bump actions/checkout from 4 to 5 (#711)
dependabot[bot] Aug 25, 2025
0283169
ci: bump actions/download-artifact from 4 to 5 (#712)
dependabot[bot] Aug 25, 2025
e5e308f
ci: update pytest-cov requirement from <5.0.0,>=4.1.0 to >=4.1.0,<7.0…
dependabot[bot] Aug 25, 2025
918f094
fix: prevent path traversal for message_id in file_session_manager (#…
mehtarac Aug 25, 2025
f028dc9
fix: Add AgentInput TypeAlias (#738)
Unshure Aug 25, 2025
0fac648
fix: Move AgentInput to types submodule (#746)
Unshure Aug 26, 2025
aa03b3d
feat: Implement typed events internally (#745)
zastrowm Aug 27, 2025
d9f8d8a
summarization manager - add summary prompt to messages (#698)
pgrayy Aug 28, 2025
6dadbce
feat: Use TypedEvent inheritance for callback behavior (#755)
zastrowm Aug 28, 2025
47faba0
feat: claude citation support with BedrockModel (#631)
theagenticguy Aug 28, 2025
94b41b4
feat: Enable hooks for MultiAgents (#760)
zastrowm Aug 28, 2025
b008cf5
Add invocation_state to ToolContext (#761)
zastrowm Aug 28, 2025
ae9d5ad
feat(models): Add VPC endpoint support to BedrockModel class (#502)
dbavro19 Aug 29, 2025
7a5caad
fix: fix stop reason for bedrock model when stop_reason (#767)
JackYPCOnline Aug 29, 2025
cb4b7fb
fix: Fix tool result message event (#771)
zastrowm Aug 29, 2025
e7d95d6
fix: fix loading tools with same tool name (#772)
JackYPCOnline Aug 29, 2025
237e188
fix: don't emit ToolStream events for non generator functions (#773)
zastrowm Sep 3, 2025
4dee33b
fix(tests): adjust test_bedrock_guardrails to account for async behav…
dbschmigelski Sep 3, 2025
2db5226
fix(doc): replace invalid Hook names in doc comment with BeforeInvoca…
deepyes02 Sep 3, 2025
1e6d12d
fix: Remove status field from toolResult for non-claude 3 models in B…
mehtarac Sep 4, 2025
ed33868
fix: filter 'SDK_UNKNOWN_MEMBER' from response content (#798)
JackYPCOnline Sep 4, 2025
d07629f
feat: Implement async generator tools (#788)
zastrowm Sep 4, 2025
ec000b8
ci: update openai requirement from <1.100.0 to <1.102.0 (#722)
dependabot[bot] Sep 5, 2025
d77f08b
fix: only add signature to reasoning blocks if signature is provided …
zastrowm Sep 5, 2025
faeb21a
fix: Moved tool_spec retrieval to after the before model invocation c…
pghazanfari Sep 8, 2025
b568864
fix(graph): fix cyclic graph behavior (#768)
mkmeral Sep 8, 2025
8cb53d3
fix(models): filter reasoningContent in Bedrock requests using DeepSe…
aryan835-datainflexion Sep 8, 2025
c142e7a
docs: cleanup docs so the yields section renders correctly (#820)
afarntrog Sep 8, 2025
f185c52
feat: Warn on unknown model configuration properties (#819)
zastrowm Sep 8, 2025
1f27488
fix: do not block asyncio event loop between retries (#805)
osdemah Sep 8, 2025
5420679
feat: improve structured output tool circular reference handling (#817)
afarntrog Sep 8, 2025
6ab1aca
fix(tools/loader): load and register all decorated @tool functions fr…
Ratish1 Sep 9, 2025
d66fcdb
fix(models): patch litellm bug to honor passing in use_litellm_proxy …
dbschmigelski Sep 9, 2025
9213bc5
feat: add default read timeout to Bedrock model (#829)
afarntrog Sep 9, 2025
001aa93
feat: add support for Bedrock/Anthropic ToolChoice to structured_outp…
liushang1997 Sep 10, 2025
7f58ce9
feat(multiagent): allow callers of swarm and graph to pass kwargs to …
dbschmigelski Sep 10, 2025
64d61e0
feat: add region-aware default model ID for Bedrock (#835)
afarntrog Sep 10, 2025
ab125f5
llama.cpp model provider support (#585)
westonbrown Sep 10, 2025
4fbe46a
fix(llama.cpp) - add ToolChoice and validation of model config values…
awsarron Sep 10, 2025
bf4e3e4
feat(telemetry): add cache usage metrics to OpenTelemetry spans (#825)
vamgan Sep 11, 2025
7f77a59
docs: improve docstring formatting for `invoke_async` function in `A…
waitasecant Sep 11, 2025
7d1bdbf
ci: bump actions/setup-python from 5 to 6 (#796)
dependabot[bot] Sep 11, 2025
eace0ec
ci: bump actions/github-script from 7 to 8 (#801)
dependabot[bot] Sep 11, 2025
fe7a700
ci: bump aws-actions/configure-aws-credentials from 4 to 5 (#795)
dependabot[bot] Sep 11, 2025
f12fee8
fix: Add type to tool_input (#854)
Unshure Sep 12, 2025
cbdab32
feat(swarm): Make entry point configurable (#851)
mkmeral Sep 12, 2025
5790a9c
ci: update ruff requirement from <0.13.0,>=0.12.0 to >=0.12.0,<0.14.0…
dependabot[bot] Sep 12, 2025
6a1b2d4
ci: update openai requirement (#827)
dependabot[bot] Sep 12, 2025
066a427
feat: add automated issue auto-close workflows with dry-run testing (…
yonib05 Sep 12, 2025
500d01a
fix: Clean up pyproject.toml (#844)
Unshure Sep 12, 2025
69d3910
Fixing documentation in decorator.py (#852)
prabhuteja12 Sep 12, 2025
6ccc8e7
models - openai - use client context (#856)
pgrayy Sep 15, 2025
293f00e
feat: add update-docs
dbschmigelski Sep 10, 2025
c0b52ff
ci: add workflow for lambda layer publish and yank
dbschmigelski Sep 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Feat] Update structured output error message (strands-agents#563)
* Update bedrock.py

* Update anthropic.py
  • Loading branch information
Unshure authored Jul 29, 2025
commit bdc893bbae711c1af301e6f18901cb30814789a0
2 changes: 1 addition & 1 deletion src/strands/models/anthropic.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ async def structured_output(
stop_reason, messages, _, _ = event["stop"]

if stop_reason != "tool_use":
raise ValueError("No valid tool use or tool use input was found in the Anthropic response.")
raise ValueError(f"Model returned stop_reason: {stop_reason} instead of \"tool_use\".")

content = messages["content"]
output_response: dict[str, Any] | None = None
Expand Down
2 changes: 1 addition & 1 deletion src/strands/models/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ async def structured_output(
stop_reason, messages, _, _ = event["stop"]

if stop_reason != "tool_use":
raise ValueError("No valid tool use or tool use input was found in the Bedrock response.")
raise ValueError(f"Model returned stop_reason: {stop_reason} instead of \"tool_use\".")

content = messages["content"]
output_response: dict[str, Any] | None = None
Expand Down