Skip to main content

resolve_effective_run_policy

Function resolve_effective_run_policy 

Source
pub async fn resolve_effective_run_policy(
    state: &AppState,
    user: &UserContext,
    conversation_id: &str,
    agent: &AgentArtifact,
    turn: Option<RunPolicy>,
) -> EffectiveRunPolicy
Expand description

Resolve the effective policy that UAR will use for a conversation and turn.

Thin service-path wrapper: it builds the PolicyUniverse and the conversation scope from AppState (the conversation scope still consults the in-memory session map as a fallback), then delegates precedence resolution to the transport-free resolve_effective_run_policy_core shared with the embedded runtime. Behavior is identical to the previous inline resolution.