Skip to content

Correct AgenticIdentity helper and scoped API naming - #536

Open
heyitsaamir wants to merge 4 commits into
microsoft:feature_agent365_supportfrom
heyitsaamir:heyitsaamir-remove-identity-helper
Open

Correct AgenticIdentity helper and scoped API naming#536
heyitsaamir wants to merge 4 commits into
microsoft:feature_agent365_supportfrom
heyitsaamir:heyitsaamir-remove-identity-helper

Conversation

@heyitsaamir

Copy link
Copy Markdown
Collaborator

Summary

This follow-up corrects the Agent365 Python API shape after #533: App.get_agentic_identity(...) remains the app-level convenience for filling blueprint and tenant context, while the lower-level API client keeps one scoped identity method. The result preserves the useful app helper and avoids two equivalent scoped client names.

Decisions

  • Keep the app helper, not the client alias pair. App.get_agentic_identity(...) is useful because the app already owns the configured blueprint/client ID and tenant ID; the API client does not need both from_ and for_ names for the same scope operation.
  • Allow app-backed and user-backed identities. The helper keeps agentic_app_id nullable so callers can construct AgenticIdentity for agentic app or agentic user flows without implying that every scope is user-backed.

Validation

The echo sample starts successfully in this branch; / returns the existing 404 response because the sample does not expose a root route.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a43ae3bd-97f9-4dbb-bfd0-ffc3dce0a3b7
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a43ae3bd-97f9-4dbb-bfd0-ffc3dce0a3b7
This reverts commit c3092c9.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a43ae3bd-97f9-4dbb-bfd0-ffc3dce0a3b7
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a43ae3bd-97f9-4dbb-bfd0-ffc3dce0a3b7
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.

1 participant