ChatClientBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A builder for creating pipelines of IChatClient.
public ref class ChatClientBuilder sealed
public sealed class ChatClientBuilder
type ChatClientBuilder = class
Public NotInheritable Class ChatClientBuilder
- Inheritance
-
ChatClientBuilder
Constructors
ChatClientBuilder(Func<IServiceProvider,IChatClient>) |
Initializes a new instance of the ChatClientBuilder class. |
ChatClientBuilder(IChatClient) |
Initializes a new instance of the ChatClientBuilder class. |
Methods
Extension Methods
ConfigureOptions(ChatClientBuilder, Action<ChatOptions>) |
Adds a callback that configures a ChatOptions to be passed to the next client in the pipeline. |
UseDistributedCache(ChatClientBuilder, IDistributedCache, Action<DistributedCachingChatClient>) |
Adds a DistributedCachingChatClient as the next stage in the pipeline. |
UseFunctionInvocation(ChatClientBuilder, ILoggerFactory, Action<FunctionInvokingChatClient>) |
Enables automatic function call invocation on the chat pipeline. |
UseLogging(ChatClientBuilder, ILoggerFactory, Action<LoggingChatClient>) |
Adds logging to the chat client pipeline. |
UseOpenTelemetry(ChatClientBuilder, ILoggerFactory, String, Action<OpenTelemetryChatClient>) |
Adds OpenTelemetry support to the chat client pipeline, following the OpenTelemetry Semantic Conventions for Generative AI systems. |