Repository navigation
ApplicationOptions configurability - #656
Conversation
…into users/robrandao/app-config
…pplication via ApplicationOptions
…soft/Agents-for-python into users/robrandao/app-config
There was a problem hiding this comment.
🟡 Changes recommended
Configuration binding discards explicit storage and other runtime options, breaking documented initialization, and also mishandles false-valued settings and custom typing options.
3 open issues
What changed in this PR
Adds configuration-based binding for ApplicationOptions, aligning application initialization with the SDK’s configuration system.
Changes:
- Supports scoped settings and the application-root
AgentApplicationsection. - Replaces constructor keyword filtering with
ApplicationOptions.from_config(). - Adds runtime dependency validation and documents the configuration support.
| File | Description |
|---|---|
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/app_options.py |
Adds scoped and root configuration binding with runtime dependency checks. |
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/agent_application.py |
Uses configuration binding to create application options. |
changelog.md |
Announces application options configuration support. |
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
The fallback merge mutates shared options and leaks dependencies between applications, while forwarded internal metadata triggers spurious deprecation warnings that can fail construction.
2 open issues
3 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
Setting metadata to false on an unmarked mapping inserts a key that triggers an Authorization deprecation warning, breaking AgentApplication initialization when deprecation warnings are treated as errors.
1 open issue
1 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed because the new configuration-binding and mixed-input merge behavior lacks regression coverage for precedence, dependency fallback, and preservation of caller-supplied options.
No open issues 🎉
1 resolved since last review
Review effort: Balanced


Summary
ApplicationOptions.from_config()support for scoped settings and the application-rootAgentApplicationsection.AgentApplicationwith configuration binding.Validation