ChatClientBuilder.Use Method
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.
Overloads
Use(IChatClient) | |
Use(Func<IChatClient,IChatClient>) | |
Use(Func<IServiceProvider,IChatClient,IChatClient>) |
Use(IChatClient)
public:
Microsoft::Extensions::AI::IChatClient ^ Use(Microsoft::Extensions::AI::IChatClient ^ innerClient);
public Microsoft.Extensions.AI.IChatClient Use (Microsoft.Extensions.AI.IChatClient innerClient);
member this.Use : Microsoft.Extensions.AI.IChatClient -> Microsoft.Extensions.AI.IChatClient
Public Function Use (innerClient As IChatClient) As IChatClient
Parameters
- innerClient
- IChatClient
Returns
Applies to
Use(Func<IChatClient,IChatClient>)
public:
Microsoft::Extensions::AI::ChatClientBuilder ^ Use(Func<Microsoft::Extensions::AI::IChatClient ^, Microsoft::Extensions::AI::IChatClient ^> ^ clientFactory);
public Microsoft.Extensions.AI.ChatClientBuilder Use (Func<Microsoft.Extensions.AI.IChatClient,Microsoft.Extensions.AI.IChatClient> clientFactory);
member this.Use : Func<Microsoft.Extensions.AI.IChatClient, Microsoft.Extensions.AI.IChatClient> -> Microsoft.Extensions.AI.ChatClientBuilder
Public Function Use (clientFactory As Func(Of IChatClient, IChatClient)) As ChatClientBuilder
Parameters
- clientFactory
- Func<IChatClient,IChatClient>
Returns
Applies to
Use(Func<IServiceProvider,IChatClient,IChatClient>)
public:
Microsoft::Extensions::AI::ChatClientBuilder ^ Use(Func<IServiceProvider ^, Microsoft::Extensions::AI::IChatClient ^, Microsoft::Extensions::AI::IChatClient ^> ^ clientFactory);
public Microsoft.Extensions.AI.ChatClientBuilder Use (Func<IServiceProvider,Microsoft.Extensions.AI.IChatClient,Microsoft.Extensions.AI.IChatClient> clientFactory);
member this.Use : Func<IServiceProvider, Microsoft.Extensions.AI.IChatClient, Microsoft.Extensions.AI.IChatClient> -> Microsoft.Extensions.AI.ChatClientBuilder
Public Function Use (clientFactory As Func(Of IServiceProvider, IChatClient, IChatClient)) As ChatClientBuilder
Parameters
- clientFactory
- Func<IServiceProvider,IChatClient,IChatClient>
Returns
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET