mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.NET: Workflow getting started samples in .Net (First batch) (#554)
* First batch of workflow getting started samples in .Net * Add Switch Case Edge group * Add multi selection group * Add comments * Add readme * Fix formatting * clean project file * WIP: Revise sample structures * Update readme * Update readme * Fix file encoding * Update sample format * Address comments * Fix formatting * Remove unwanted file * Fix unit tests * Remove unwanted file
This commit is contained in:
@@ -99,6 +99,12 @@ internal class AIAgentHostExecutor : Executor
|
||||
|
||||
await foreach (AgentRunResponseUpdate update in agentStream.ConfigureAwait(false))
|
||||
{
|
||||
if (string.IsNullOrEmpty(update.MessageId))
|
||||
{
|
||||
// Ignore updates that don't have a message ID.
|
||||
continue;
|
||||
}
|
||||
|
||||
if (emitEvents)
|
||||
{
|
||||
await context.AddEventAsync(new AgentRunUpdateEvent(this.Id, update)).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user