Skip to content

Add AgenticID support to APIClients#447

Draft
rido-min wants to merge 3 commits intonext/corefrom
next/core-integrationtests-au
Draft

Add AgenticID support to APIClients#447
rido-min wants to merge 3 commits intonext/corefrom
next/core-integrationtests-au

Conversation

@rido-min
Copy link
Copy Markdown
Member

@rido-min rido-min commented Apr 23, 2026

This pull request introduces support for passing an optional AgenticIdentity parameter to various API client methods across the codebase. This enables user-delegated token acquisition and allows the bot to act on behalf of an agentic app when required. The changes are primarily focused on extending method signatures, updating internal calls, and propagating the identity through the compatibility layer.

AgenticIdentity support across API clients:

  • Updated methods in ActivityClient, ConversationApiClient, MeetingClient, MemberClient, ReactionClient, and TeamClient to accept an optional AgenticIdentity parameter and pass it to underlying client calls. [1] [2] [3] [4] [5] [6] [7] [8]

Compatibility layer enhancements:

  • Added AgenticIdentity as a property of CompatConversations, populated from incoming activity properties, and ensured it is passed to all relevant internal client method calls. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Code maintenance and imports:

  • Added missing using Microsoft.Teams.Bot.Core.Schema; in several files to support the new parameter. [1] [2] [3]
  • Removed outdated TODO comments regarding agentic identities in CompatConversations.

These changes collectively ensure agentic identity information can be consistently and securely propagated for user-delegated scenarios.
bot-agent-integrationtests.md

rido-min and others added 3 commits April 23, 2026 13:28
…configurations

- Introduced `SkipIfAgentic()` method to skip tests incompatible with agentic identity in CompatTeamsInfoTests.
- Updated all relevant tests to use [SkippableFact] with a timeout of 60 seconds.
- Enhanced CreateConversationDiagnosticTests to set AgenticIdentity in HTTP requests.
- Modified ConversationClientTests and CreateConversationTests to include agentic properties in activities.
- Added methods in IntegrationTestFixture to retrieve ConversationAccount and AgenticIdentity.
- Included Xunit.SkippableFact package for dynamic test skipping.
- Updated xunit.runner.json to disable test collection parallelization to prevent token cache conflicts.
Enable agentic identity propagation in the Teams Bot Compat layer by extracting AgenticIdentity from activity properties and passing it through CompatConversations to all relevant API calls. Update tests to support agentic scenarios by removing SkipIfAgentic logic, using [Fact] for all tests, and including agentic properties in test setup. This improves support for delegated access and agentic app scenarios across both runtime and tests.
@rido-min rido-min added the CORE label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant