Agent Runtime
Agent Runtime add-on for configuring and running AI agents with streaming responses.
The Agent Runtime add-on (Umbraco.AI.Agent) enables you to configure and run AI agents that can interact with users through streaming responses and execute frontend tools.
Installation
Install-Package Umbraco.AI.AgentOr via .NET CLI:
dotnet add package Umbraco.AI.AgentFeatures
Standard Agents - Configure reusable AI agents with instructions and tool permissions
Orchestrated Agents - Compose multiple agents into workflow pipelines
Custom Workflows - Extensible workflow system for multi-agent orchestration
AG-UI Protocol - Stream responses using the AG-UI event protocol
Profile Association - Link agents to specific AI profiles
Context Injection - Include AI Contexts for brand voice (standard agents)
Scopes - Categorize agents for specific purposes (e.g., copilot)
Version History - Track changes with full rollback support
Backoffice Management - Full UI for managing agents
Management API - RESTful API for agent operations
Quick Start
1. Create an Agent
In the backoffice, navigate to the AI section > Agents and create a new agent:
Alias
content-assistant
Name
Content Assistant
Instructions
You are a helpful content assistant. Help users write and improve content.
Profile
(select your chat profile)
2. Run the Agent
3. Consume in Frontend
AG-UI Protocol
The Agent Runtime uses the AG-UI (Agent UI) protocol for streaming responses. The protocol defines event types for:
Lifecycle events -
RUN_STARTED,RUN_FINISHED,RUN_ERRORText streaming -
TEXT_MESSAGE_START,TEXT_MESSAGE_CONTENT,TEXT_MESSAGE_ENDTool calls -
TOOL_CALL_START,TOOL_CALL_ARGS,TOOL_CALL_ENDState updates -
STATE_SNAPSHOT,STATE_DELTA
Documentation
Agent types, architecture, AG-UI protocol
Step-by-step setup guide
Standard agent instruction configuration
Orchestrated agent workflows
Categorizing agents with scopes
Tool permissions and user group overrides
SSE streaming and event handling
UaiAgentClient for custom agent UIs
Management API endpoints
IAIAgentService
For Contextual Copilot-specific features:
Contextual chat sidebar and tool execution
Browser-executable tools
Using the chat interface
For Copilot Workspace-specific features:
Full-section chat, persisted conversations, and projects
Conversations, projects, and the context panel
Related
Add-ons Overview - All add-on packages
AI Contexts - Brand voice and guidelines
Profiles - AI configuration
Last updated
Was this helpful?