Skip to main content

Module ir

Module ir 

Source
Expand description

Intermediate Representation (IR) for UAR-AGENT-MD documents.

Two IR variants are provided:

  • AgentDescriptorIR: All sections required — used after successful parse of a complete document.
  • PartialAgentDescriptorIR: All sections optional — used during conversational mode to accumulate data incrementally.

Structs§

A2ADependency
A2AEndpoint
A2ASection
AgentDescriptorIR
Complete Intermediate Representation of a UAR-AGENT-MD document. Every section is required. This is the canonical input to the compilation pipeline.
ApiHarnessSection
Declares which transport protocols this agent supports and, for the SSE surface, which stream_mode it emits by default. Mirrors the stream_mode selector CH-21 (agui-spec-alignment) added to src/server.rs (openai | agui | dual | agui_spec).
AuditConfig
BudgetsSection
CapabilitiesSection
ConversationMemoryConfig
DeploymentProfile
DeploymentSection
ExecutionSection
GovernanceSection
IdentitySection
KnowledgeSection
KnowledgeSource
LoggingConfig
McpAuth
McpServerRef
McpServersSection
MemorySection
MetadataSection
MetricsConfig
ModelRequirementsSection
Declares the capabilities a compiled agent’s resolved model must have. Mirrors crate::llm::router::RouteRequirements — the compiler-time declaration and the runtime router’s selection criteria are the same shape by design, so a conformance check (CH-14) can compare them directly.
ObservabilitySection
PartialAgentDescriptorIR
Partial IR for conversational mode. Every section is Option<T> to allow incremental population. Use [CompletenessAnalyzer] to check readiness.
PersistentMemoryConfig
PromptDialectSection
Declares prompt-dialect hints for the resolved model. Mirrors crate::llm::prompt_dialect::DialectRequest — dialect is an optional override; when absent, the dialect is detected from the resolved model id at request-assembly time (unchanged from CH-04).
ProviderConfig
RagConfigurationSection
Declares this agent’s retrieval-augmented-generation posture. Mirrors the in-process hardening knobs shipped in CH-11 (query decomposition, retrieval verification, audit events) — deliberately in-process per uar-next-harness’s D-A decision; Knowledge Service extraction remains out of scope.
RateLimitConfig
ResourceConfig
RetrievalConfig
SkillRef
SkillsSection
ToolRef
ToolsSection
TracingConfig
UiAction
UiArtifact
UiForm
UiSection

Enums§

ContextStrategySection
Declares this agent’s message-history trimming strategy. Mirrors crate::uar::context::ContextStrategy variant-for-variant (including Auto, CH-05’s model-aware selection) so a compiled descriptor can express exactly what the runtime will do — the conformance harness (CH-14) checks this against RunManager.message_context_strategy at load and run time.
SectionName
Canonical section names as they appear in UAR-AGENT-MD ## <name> headings.