Skip to content

.NET: [BackagroundResponses] ChatClientAgent.RunStreamingAsync updates loss on first run failure #1760

@SergeyMenshykh

Description

@SergeyMenshykh

When Background Responses are enabled, if ChatClientAgent.RunStreamingAsync fails during the first run, the updates received within that run will never be added to the thread (client-side only; the server-side ones are added by the server). Additionally, the context provider won't receive those updates either. Only updates received in the last successful resume call of RunStreamingAsync will be added to the thread and sent to the context provider. This will leave the thread and context provider in an invalid state because they will only receive updates from the last successful resume call of the RunStreamingAsync method, while updates received in RunStreamingAsync calls before they failed will be lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETagentsIssues related to single agents

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions