Files
Javier Calvarro Nelson e859edc2a4 .NET: AG-UI support for .NET: Support for tool calling (#1896)
* Initial implementation

* tmp

* Replace function calling with a FunctionInvokingChatClient

* Cleanups

* Remove custom thread

* Fixing function calling server and client

* Cleanup

* Cleanup serialization

* Run dotnet format

* Pass logger factory

* Populate message properties

* Remove files

* Cleanups

* cleanup

* Cleanups

* More cleanup

* Simplify things

* Cleanup

* Clean up json serialization

* Additional tests

* Add service collection extensions for serialization

* Combine options in AGUIChatClient

* Additional tests

* Include tool calling in the sample, fix mixed server and client tool calls

* Fix tests

* More cleanups

* Fix tests

* Cleanups

* Dojo project and fixes

* Fix build

* Remove dojo

* Cleanup

* Address feedback

* address feedback

* Additional feedback

* Fix build

* Fix build

* Make packages packable
e859edc2a4 ยท 2025-11-07 17:23:21 +00:00
History
..
2025-11-05 15:51:37 +00:00

AG-UI Client

This is a console application that demonstrates how to connect to an AG-UI server and interact with remote agents using the AG-UI protocol.

Features

  • Connects to an AG-UI server endpoint
  • Displays streaming updates with color-coded output:
    • Yellow: Run started notifications
    • Cyan: Agent text responses (streamed)
    • Green: Run finished notifications
    • Red: Error messages (if any)
  • Interactive prompt loop for sending messages

Configuration

Set the following environment variable to specify the AG-UI server URL:

$env:AGUI_SERVER_URL="http://localhost:5100"

If not set, the default is http://localhost:5100.

Running the Client

  1. Make sure the AG-UI server is running
  2. Run the client:
    cd AGUIClient
    dotnet run
    
  3. Enter your messages and observe the streaming updates
  4. Type :q or quit to exit