Extension support and starter sample#141
Merged
rodrigobr-msft merged 73 commits intomainfrom Oct 7, 2025
Merged
Conversation
…tuple and add JWT decoding for blueprint ID
…into users/robrandao/extension-starter
This was
linked to
issues
Sep 26, 2025
…into users/robrandao/extension-starter
cleemullins
requested changes
Oct 7, 2025
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/_routes/__init__.py
Show resolved
Hide resolved
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/_routes/_route.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/_routes/_route.py
Show resolved
Hide resolved
...aries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/_routes/_route_list.py
Show resolved
Hide resolved
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/_routes/route_rank.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/agent_application.py
Show resolved
Hide resolved
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/agent_application.py
Show resolved
Hide resolved
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.
This pull request introduces a new "extension-starter" sample for the SDK, demonstrating how to build custom extensions and event handlers on top of the SDK. It also refactors the core application routing logic to use a new
RouteListstructure, simplifies type hints, and improves the extensibility of the routing system. The most important changes are grouped below:New Extension Starter Sample and Documentation:
extension-startersample intest_samples, including example extension agent code, custom event models, and a sample application setup to illustrate how to extend the SDK with custom routes and event handling. [1] [2] [3] [4] [5] [6]Core Routing System Refactor:
AgentApplicationto use a newRouteListclass instead of a plain list, improving manageability and extensibility of routes. Theadd_routemethod is now the central way to register new routes, and all decorator-based registration methods (activity,message, etc.) delegate to it. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]Type Hint and Import Improvements:
list[...]instead ofList[...]) and updated imports for routing-related types across the core hosting modules for better clarity and type safety. [1] [2] [3] [4] [5] [6] [7]Minor Cleanups:
These changes collectively make it easier to build, register, and manage custom event handlers and routes in SDK-based agent applications, while providing a clear sample for extension development.