Skip to content

Conversation

westey-m
Copy link
Contributor

Motivation and Context

To avoid naming clashes we are renaming Agent to AIAgent.
This matches naming in MEAI.

Description

  • Rename Agent to AIAgent
  • Add new DisplayName property on AIAgent that returns Name and falls back to ID.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the SK Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • I didn't break anyone 😄

@Copilot Copilot AI review requested due to automatic review settings July 18, 2025 10:37
Copy link
Contributor

@Copilot 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 renames the Agent class to AIAgent throughout the codebase to avoid naming clashes and adds a new DisplayName property. The renaming aligns with MEAI naming conventions while the new property provides a fallback from Name to Id for display purposes.

Key changes:

  • Rename Agent class to AIAgent across all files
  • Add DisplayName property that returns Name ?? Id
  • Update all references, inheritance, parameters, and documentation

Reviewed Changes

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

Show a summary per file
File Description
dotnet/src/Microsoft.Extensions.AI.Agents.Abstractions/AIAgent.cs Core class rename and DisplayName property addition
dotnet/src/Microsoft.Extensions.AI.Agents/OpenTelemetryAgent.cs Updated to inherit from AIAgent and accept AIAgent parameters
dotnet/src/Microsoft.Extensions.AI.Agents/ChatCompletion/ChatClientAgent.cs Updated inheritance to extend AIAgent
dotnet/src/Microsoft.Extensions.AI.Agents/AgentExtensions.cs Updated extension methods to work with AIAgent
dotnet/src/Microsoft.Extensions.AI.Agents.CopilotStudio/CopilotStudioAgent.cs Updated inheritance to extend AIAgent
Multiple orchestration files Updated to use AIAgent in constructors, parameters, and field types
Multiple test files Updated mock objects, type references, and fixture implementations
Sample files Updated agent instantiation and usage examples

@westey-m westey-m added this pull request to the merge queue Jul 18, 2025
Merged via the queue into microsoft:main with commit fc999e2 Jul 18, 2025
7 checks passed
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.

4 participants