LightAgent.GuiLib 0.9.26

dotnet add package LightAgent.GuiLib --version 0.9.26
                    
NuGet\Install-Package LightAgent.GuiLib -Version 0.9.26
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LightAgent.GuiLib" Version="0.9.26" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LightAgent.GuiLib" Version="0.9.26" />
                    
Directory.Packages.props
<PackageReference Include="LightAgent.GuiLib" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LightAgent.GuiLib --version 0.9.26
                    
#r "nuget: LightAgent.GuiLib, 0.9.26"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LightAgent.GuiLib@0.9.26
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LightAgent.GuiLib&version=0.9.26
                    
Install as a Cake Addin
#tool nuget:?package=LightAgent.GuiLib&version=0.9.26
                    
Install as a Cake Tool

About This Library

UserInputControl and ChatHistoryControl are UI components specifically designed for applications built on top of the LightAgent framework.

Unlike generic chat controls, these components are designed to work with the interaction model and message protocol used by LightAgent. The controls provide a ready-to-use user experience for:

  • AI Assistants
  • Agentic Workflows
  • Tool Calling Agents
  • Multi-step Reasoning Systems
  • Streaming LLM Applications
  • Custom LightAgent-Based Projects

The library focuses on the presentation layer and interaction experience while relying on LightAgent for orchestration, event delivery, tool execution, and conversation management.


Relationship with LightAgent

The controls are designed around the LightAgent event-driven interaction model.

Typical workflow:

        UserInputControl
                │
                ▼

     AgentUserRequestCommand

                │
                ▼

          LightAgent

                │
                ▼

    AgentOutputTextEvent
    AgentLogEvent
    AgentConversationCompletedEvent
            ...

                │
                ▼

      ChatHistoryControl

The host application is responsible for connecting LightAgent events and commands to the UI controls.


Supported LightAgent Interaction Pattern

The controls are optimized for the standard LightAgent conversation lifecycle:

User Input
    ↓
Agent Request
    ↓
Streaming Output
    ↓
Agent Progress Events
    ↓
Conversation Complete

This allows applications to deliver a real-time conversational experience with streamed responses and execution progress updates.


Event Mapping

A typical LightAgent integration maps framework events to UI operations as follows:

LightAgent Event Chat UI Behavior
AgentUserRequestCommand Start a new request
AgentOutputTextEvent Append streamed content
AgentLogEvent Display progress or execution logs
AgentConversationCompletedEvent Finalize response session
AgentCancellationEvent Stop current response
AgentErrorEvent Display error information

The exact event set depends on the LightAgent version and project implementation.


Streaming-First Design

ChatHistoryControl is designed primarily for LightAgent's streaming output model.

Typical message flow:

OpenNewAgentResponseSession()
            │
            ▼

AgentOutputTextEvent
    + "Hello"

AgentOutputTextEvent
    + ", how can I"

AgentOutputTextEvent
    + " help you today?"

            ▼

AgentConversationCompletedEvent

Instead of creating a new message for every event, streamed text is appended to the active response container, producing a smooth real-time chat experience.


Progress and Workflow Visualization

LightAgent applications often produce intermediate execution events, such as:

  • Planning
  • Tool Invocation
  • Tool Results
  • Workflow Steps
  • Status Updates
  • Reasoning Progress

ChatHistoryControl provides dedicated rendering support for these types of events, allowing applications to visualize agent execution progress alongside conversational responses.

Example:

User:
Generate a project report

Assistant:
Analyzing project data...

[Step] Loading project files
[Step] Extracting information
[Step] Generating summary

Report generation completed.

Responsibilities

UserInputControl

Responsible for:

  • User input collection
  • Send / Stop actions
  • Attachment UI management
  • Input state transitions
  • Interaction with LightAgent request workflows

ChatHistoryControl

Responsible for:

  • Rendering LightAgent conversation output
  • Streaming text updates
  • Progress event visualization
  • User message rendering
  • Conversation session management
  • LightAgent-oriented message presentation

What This Library Does Not Provide

This library does not replace LightAgent.

The following capabilities remain the responsibility of the host application and the LightAgent runtime:

  • Agent implementation
  • LLM integration
  • Tool execution
  • Function calling
  • Workflow orchestration
  • Memory management
  • Conversation persistence
  • Network communication

The controls serve as the presentation layer for LightAgent-based applications and are intended to be used together with the framework's command and event protocol.


UserInputControl
        │
        ▼

AgentUserRequestCommand

        │
        ▼

LightAgent Runtime

        │
        ├── AgentOutputTextEvent
        ├── AgentLogEvent
        ├── AgentToolEvent
        └── AgentConversationCompletedEvent

        ▼

ChatHistoryControl

This integration pattern provides a complete user experience for LightAgent-powered desktop applications with minimal UI development effort.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.9.26 93 8/19/2026
0.9.25 90 8/11/2026
0.9.24.1 91 8/10/2026
0.9.24 98 8/10/2026
0.9.23.3 111 8/6/2026
0.9.23.2 97 8/5/2026
0.9.23.1 93 8/5/2026
0.9.23 103 8/4/2026
0.9.22.1 101 8/3/2026
0.9.21.2 101 7/31/2026
0.9.21.1 104 7/30/2026
0.9.21 100 7/30/2026
0.9.20 100 7/29/2026
0.9.19 106 7/27/2026
0.9.18 101 7/22/2026
0.9.12 98 7/21/2026
0.9.11 99 7/17/2026
0.9.10 131 7/17/2026
0.9.9 132 7/16/2026
0.9.8 133 7/15/2026
Loading failed