Skip to main content

FOUNDRY_SCOPE

Constant FOUNDRY_SCOPE 

Source
pub const FOUNDRY_SCOPE: &str = "https://ai.azure.com/.default";
Expand description

The Entra ID scope (audience) for the Azure AI Foundry data plane.

AzureOpenAIResponsesClient (the transport FoundryChatClient delegates to) has no per-request scope override — it calls TokenCredential::get_token, trusting the credential to already be bound to the right audience. Construct the credential with this scope, e.g. AzureCliCredential::new(FOUNDRY_SCOPE) or DefaultAzureCredential::new(FOUNDRY_SCOPE).