Skip to content

Conversation

@rahuldevikar761
Copy link
Collaborator

No description provided.

@rahuldevikar761 rahuldevikar761 requested a review from a team as a code owner December 11, 2025 21:01
Copilot AI review requested due to automatic review settings December 11, 2025 21:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves type safety across MCP tool registration services and runtime utilities by replacing generic Any type hints with specific type annotations. The changes make the codebase more maintainable and provide better IDE support and type checking.

Key Changes

  • Replaced Any with sk.Kernel in Semantic Kernel MCP tool registration service methods
  • Updated initial_tools parameter from List[Any] to List[MCPStreamableHTTPTool] in Agent Framework service
  • Implemented proper circular import avoidance pattern using TYPE_CHECKING for TurnContext in runtime utility

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
libraries/microsoft-agents-a365-tooling-extensions-semantickernel/microsoft_agents_a365/tooling/extensions/semantickernel/services/mcp_tool_registration_service.py Updated parameter types from Any to sk.Kernel for _validate_inputs and _add_hardcoded_tools_for_server methods; removed unused Any import
libraries/microsoft-agents-a365-tooling-extensions-agentframework/microsoft_agents_a365/tooling/extensions/agentframework/services/mcp_tool_registration_service.py Changed initial_tools parameter type from List[Any] to List[MCPStreamableHTTPTool] for better type safety; removed unused Any import
libraries/microsoft-agents-a365-runtime/microsoft_agents_a365/runtime/utility.py Implemented TYPE_CHECKING pattern with forward reference to avoid circular imports while properly typing the context parameter as Optional["TurnContext"] in resolve_agent_identity method

@rahuldevikar761 rahuldevikar761 changed the title Update Parameters types Remove usage of Any in Parameters Dec 11, 2025
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