Description
Currently the AI Search context provider does not seem to expose a way to set x_ms_query_source_authorization parameter on the retrieve() call.
This is required to use remote SharePoint knowledge sources to ensure end users are covered by an M365 Copilot license or a pay-as-you-go billing policy.
I'm also not sure how this should ideally be wired up so that apps using or hosting the agent are able to set this on per-request basis.
Importance
Since the PayGo model for the underlying Copilot Retrieval API is now in public preview, this unblocks customers to easily build high-quality custom developments based on SharePoint knowledge for larger workforces without the need for a Copilot license.
Language/SDK
Both