Skip to content

ApplicationOptions configurability - #656

Merged
Rodrigo Brandão (rodrigobr-msft) merged 13 commits into
mainfrom
users/robrandao/app-config
Nov 19, 2026
Merged

Rodrigo Brandão (rodrigobr-msft) merged 13 commits into
mainfrom
users/robrandao/app-config

Conversation

@rodrigobr-msft

@rodrigobr-msft Rodrigo Brandão (rodrigobr-msft) commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add ApplicationOptions.from_config() support for scoped settings and the application-root AgentApplication section.
  • Replace manual constructor keyword filtering in AgentApplication with configuration binding.
  • Preserve runtime dependencies such as storage, adapters, proactive options, turn-state factories, and file downloaders, with type validation for supported inputs.

Validation

  • 119 Slack and sample configuration tests passed.
  • 130 core application tests passed.
  • Black formatting check passed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 AgentApplication section.
  • 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unconditionally clearing an absent root flag raises a KeyError, causing ordinary AgentApplication construction to fail before options are processed.

1 open issue
2 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@rodrigobr-msft
Rodrigo Brandão (rodrigobr-msft) merged commit cefbae3 into main Nov 19, 2026
10 checks passed
@rodrigobr-msft
Rodrigo Brandão (rodrigobr-msft) deleted the users/robrandao/app-config branch November 19, 2026 18:59
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.

3 participants