Expand description
Scoped chat policy contracts and deterministic resolution.
UAR owns policy resolution. Hosts submit intent at global, agent, conversation, or turn scope; the runtime resolves one immutable policy before it assembles context or exposes tools to a model.
Structs§
- Conversation
Policy Record - Durable conversation-scoped policy record owned by UAR persistence.
- Effective
Resource Selection - Resolved selection for one resource kind.
- Effective
RunPolicy - Secret-free, immutable policy used to execute one run.
- Model
Route - Explicit provider/model route requested by a policy scope.
- Policy
Resolution Context - Transport-free inputs shared by the service and embedded resolvers.
- Policy
Resolution Input - Input required to resolve one immutable effective policy.
- Policy
Universe - Resources enabled by configuration and available on the current runtime.
- Resource
Selection - Resource-selection intent at one policy scope.
- RunPolicy
- Versioned policy supplied at global, agent, conversation, or turn scope.
Enums§
- Chat
Mode - User-visible execution mode for a chat run.
- Policy
Scope - Scope that supplied an effective policy value.
- Selection
Mode - How a scope selects resources from the set allowed by its parent scope.
- Tool
Approval Policy - Tool-call approval constraint.
Constants§
- RUN_
POLICY_ VERSION - Current serialized policy schema version.
Functions§
- load_
persisted_ conversation_ policy - Load the durable conversation-scoped policy from persistence, if present.
- policy_
from_ agent_ artifact - Convert a persisted agent artifact into its policy scope.
- resolve_
effective_ run_ policy_ core - Resolve the effective policy for a conversation and turn using the full Global → Agent → Conversation → Turn precedence.
- resolve_
run_ policy - Resolve one run policy using deny-safe, non-widening scope precedence.