Skip to main content

Crate universal_agent_runtime

Crate universal_agent_runtime 

Source
Expand description

Axum + HTMX + Web Components

An agentic streaming LLM application that supports tool-first interaction, streams rich typed model output, and remains HTML-first and inspectable.

§Architecture

  • Server: Axum-based HTTP server with SSE streaming
  • LLM Orchestration: Protocol-agnostic driver for Chat Completions and Responses APIs
  • MCP Client: Dynamic tool discovery and execution via Model Context Protocol
  • UI: Static HTML + HTMX + Web Components + Alpine.js

§Modules

  • llm: LLM driver traits and implementations
  • mcp: MCP client configuration and registry
  • normalized: Unified streaming event model
  • session: Conversation and session management

Re-exports§

pub use uar::error::Result;
pub use uar::error::UarError;
pub use skills_api::SkillsApi;

Modules§

config
config_manager
embedded
Transport-independent embedded UAR application kernel.
llm
LLM driver traits and implementations.
mcp
Model Context Protocol (MCP) client implementation.
normalized
Normalized event types for streaming LLM responses.
sandbox
Sandboxed code execution for MCP tools and agent-generated code.
server
session
Session and conversation thread management.
skills_api
The embedder-facing skill API (R4).
uar

Structs§

AppState
Application state shared across all handlers.