Skip to content

A programming framework for agentic AI

699 B
Raw Blame

The following example shows how to create an @AutoGen.OpenAI.OpenAIChatAgent and chat with it.

Firsly, import the required namespaces: [!code-csharp]

Then, create an @AutoGen.OpenAI.OpenAIChatAgent and chat with it: [!code-csharp]

@AutoGen.OpenAI.OpenAIChatAgent also supports streaming chat via @AutoGen.Core.IAgent.GenerateStreamingReplyAsync*.

[!code-csharp]