foundry_set_project_endpoint: Set Azure AI Foundry project endpoint

View source: R/config.R

foundry_set_project_endpointR Documentation

Set Azure AI Foundry project endpoint

Description

Set the project endpoint used by project-scoped Foundry APIs such as Azure evaluators and Agent Service operations. Prefer copying the full endpoint from the Foundry portal because Azure's project endpoint shape can vary by service generation.

Usage

foundry_set_project_endpoint(endpoint, store = FALSE)

Arguments

endpoint

Character string containing the project endpoint URL.

store

Logical. If TRUE, stores the endpoint in foundryR's package-specific user configuration file.

Value

Invisibly returns TRUE if the endpoint was set successfully.

Examples


withr::with_envvar(c(AZURE_FOUNDRY_PROJECT_ENDPOINT = NA_character_), {
  foundry_set_project_endpoint(
    "https://example.services.ai.azure.com/api/projects/demo"
  )
  foundry_get_project_endpoint()
})


foundryR documentation built on Sept. 25, 2026, 1:10 a.m.