For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Package Manager Console
Install-Package Umbraco.AI.Agent

Or via .NET CLI:

Terminal
dotnet add package Umbraco.AI.Agent

Features

  • 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

For a chat sidebar with frontend tools and Human-in-the-Loop (HITL) approval, install the Contextual Copilot add-on alongside this package. For a full-section, persisted chat experience instead, install Copilot Workspace.

Quick Start

1. Create an Agent

In the backoffice, navigate to the AI section > Agents and create a new agent:

Field
Value

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_ERROR

  • Text streaming - TEXT_MESSAGE_START, TEXT_MESSAGE_CONTENT, TEXT_MESSAGE_END

  • Tool calls - TOOL_CALL_START, TOOL_CALL_ARGS, TOOL_CALL_END

  • State updates - STATE_SNAPSHOT, STATE_DELTA

Documentation

Section
Description

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:

Section
Description

Contextual chat sidebar and tool execution

Browser-executable tools

Using the chat interface

For Copilot Workspace-specific features:

Section
Description

Full-section chat, persisted conversations, and projects

Conversations, projects, and the context panel

Last updated

Was this helpful?