Skip to main content

Module settings

Module settings 

Source
Expand description

PurviewSettings and the location-scoping types it carries. Mirrors Python’s agent_framework_purview._settings.

Structs§

PurviewAppLocation
Identifies the calling application’s location for Purview policy evaluation (an application id, a URL, or a domain). Mirrors Python’s PurviewAppLocation.
PurviewSettings
Settings for Purview integration. Mirrors Python’s PurviewSettings (an AFBaseSettings/pydantic model there; a plain builder-style struct here — this port has no environment-variable-driven construction for it, since Python’s PurviewSettings isn’t env-prefixed either, unlike agent-framework-copilotstudio’s CopilotStudioSettings).

Enums§

PurviewLocationType
The kind of location a PurviewAppLocation identifies. Mirrors Python’s PurviewLocationType.

Constants§

DEFAULT_BLOCKED_PROMPT_MESSAGE
Default message returned when a prompt is blocked by policy.
DEFAULT_BLOCKED_RESPONSE_MESSAGE
Default message returned when a response is blocked by policy.
DEFAULT_CACHE_TTL_SECONDS
Default protection-scopes cache TTL Python declares (14400s = 4 hours). Carried here for settings parity even though this port does not cache — see the crate docs’ “Scope” section.
DEFAULT_GRAPH_BASE_URI
Default Microsoft Graph base URI, matching PurviewSettings.graph_base_uri’s Python default.
DEFAULT_MAX_CACHE_SIZE_BYTES
Default max cache size Python declares (200 MiB). See DEFAULT_CACHE_TTL_SECONDS.