Skip to content

Conversation

@zastrowm
Copy link
Member

@zastrowm zastrowm commented Sep 8, 2025

Description

Implement the ability for all built-in providers to emit a warning when unknown configuration properties are included.

Given this code:

model = BedrockModel(
    model_id=model_id,
    blah="hi"
)

provides the following warning:

/.../_config_validation.py:21: UserWarning: Invalid configuration parameters: ['blah'].
Valid parameters are: ['additional_args', 'additional_request_fields', 'additional_response_field_paths', 'cache_prompt', 'cache_tools', 'guardrail_id', 'guardrail_redact_input', 'guardrail_redact_input_message', 'guardrail_redact_output', 'guardrail_redact_output_message', 'guardrail_stream_processing_mode', 'guardrail_trace', 'guardrail_version', 'include_tool_result_status', 'max_tokens', 'model_id', 'stop_sequences', 'streaming', 'temperature', 'top_p'].

See https://github.com/strands-agents/sdk-python/issues/815

Related Issues

#815

Documentation PR

N/A

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.

Unshure
Unshure previously approved these changes Sep 8, 2025
Implement the ability for all built-in providers to emit a warning when unknown configuration properties are included.
@zastrowm zastrowm merged commit f185c52 into strands-agents:main Sep 8, 2025
11 of 12 checks passed
vamgan pushed a commit to vamgan/sdk-python that referenced this pull request Sep 8, 2025
)

Implement the ability for all built-in providers to emit a warning when unknown configuration properties are included.

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

Implement the ability for all built-in providers to emit a warning when unknown configuration properties are included.

Co-authored-by: Mackenzie Zastrow <[email protected]>
This was referenced Sep 17, 2025
Unshure pushed a commit to Unshure/sdk-python that referenced this pull request Sep 24, 2025
)

Implement the ability for all built-in providers to emit a warning when unknown configuration properties are included.

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.

4 participants