Skip to content

Extension support and starter sample#141

Merged
rodrigobr-msft merged 73 commits intomainfrom
users/robrandao/extension-starter
Oct 7, 2025
Merged

Extension support and starter sample#141
rodrigobr-msft merged 73 commits intomainfrom
users/robrandao/extension-starter

Conversation

@rodrigobr-msft
Copy link
Contributor

@rodrigobr-msft rodrigobr-msft commented Sep 25, 2025

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 RouteList structure, simplifies type hints, and improves the extensibility of the routing system. The most important changes are grouped below:

New Extension Starter Sample and Documentation:

  • Added a new extension-starter sample in test_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:

  • Refactored the routing system in AgentApplication to use a new RouteList class instead of a plain list, improving manageability and extensibility of routes. The add_route method 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:

  • Standardized type hints for lists (using list[...] instead of List[...]) 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:

  • Removed unused imports and cleaned up redundant code in the core modules.

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.

@rodrigobr-msft rodrigobr-msft marked this pull request as ready for review October 6, 2025 21:32
@rodrigobr-msft rodrigobr-msft enabled auto-merge (squash) October 7, 2025 17:00
Copy link
Collaborator

@cleemullins cleemullins left a comment

Choose a reason for hiding this comment

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

Reviewed in person

@rodrigobr-msft rodrigobr-msft merged commit 02eb8cd into main Oct 7, 2025
8 checks passed
@rodrigobr-msft rodrigobr-msft deleted the users/robrandao/extension-starter branch October 7, 2025 17:00
@rodrigobr-msft rodrigobr-msft restored the users/robrandao/extension-starter branch October 9, 2025 18:12
@cleemullins cleemullins deleted the users/robrandao/extension-starter branch October 20, 2025 21:07
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.

Add Agentic flag to AgentApplication routes Create Sample describing use of Agentic Identity for Python Samples

2 participants

Comments