Skip to content

Rename IChatClient's methods and result types #5868

@SteveSandersonMS

Description

@SteveSandersonMS

Outcome from a team discussion

Before:

public interface IChatClient
{
    Task<ChatCompletion> CompleteAsync(...);
    IAsyncEnumerable<StreamingChatCompletionUpdate> CompleteStreamingAsync(...);
}

After:

public interface IChatClient
{
    Task<ChatResponse> GetResponseAsync(...);
    IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(...);
}

Of course, this will also affect all the many overloads of CompleteAsync and CompleteAsync<T>.

Metadata

Metadata

Assignees

Labels

api-approvedAPI was approved in API review, it can be implementedarea-aiMicrosoft.Extensions.AI libraries

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions