Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[.Net][Feature Request]: Enable step-by-step execution for group chat using IAsyncEnumerable #3075

Open
LittleLittleCloud opened this issue Jul 3, 2024 · 0 comments · May be fixed by #3214
Assignees
Labels
enhancement New feature or request

Comments

@LittleLittleCloud
Copy link
Collaborator

LittleLittleCloud commented Jul 3, 2024

Is your feature request related to a problem? Please describe.

developers might want to dive deep into the internal process of group chat for observation/early stop/etc..

Describe the solution you'd like

Provide an IAsyncEnumerable extension API to run group chat step by step.

public static class GroupChatExtension
{
    static IAsyncEnumeable<IMessage> SendAsync(IEnumerable<IMessage>? conversation = null, int maxRound = 10, CancellationToken ct = default);
}

Example: early stop when the message is from xxx

IGroupChat group;
await foreach (IMessage message in group.SendAsync(chatHistory))
{
      if (message.From == "xxx")
      {
            break;
      }
}

Additional context

No response

@LittleLittleCloud LittleLittleCloud added the enhancement New feature or request label Jul 3, 2024
@LittleLittleCloud LittleLittleCloud added the api-break-change Will break existing api and needs an migration for previous code to work label Jul 11, 2024
@LittleLittleCloud LittleLittleCloud removed the api-break-change Will break existing api and needs an migration for previous code to work label Jul 25, 2024
@LittleLittleCloud LittleLittleCloud added this to the AutoGen.Net 0.1.0 milestone Jul 25, 2024
@LittleLittleCloud LittleLittleCloud self-assigned this Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
1 participant