Skip to content

Commit cd76a8b

Browse files
authored
Fix readme (Azure#49237)
1 parent 9957c74 commit cd76a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/ai/Azure.AI.Projects/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ ToolOutput GetResolvedToolOutput(string functionName, string toolCallId, string
601601
}
602602
```
603603

604-
We parse streaming updates in two cycles. One iterates over the streaming run outputs and when we are getting update, requiring the action, we are starting the second cycle, which iterates over the outputs of the same run, after submission of the local functions calls results.
604+
We create a stream and wait for the stream update of the `RequiredActionUpdate` type. This update will mark the point, when we need to submit tool outputs to the stream. We will submit outputs in the inner cycle. Please note that `RequiredActionUpdate` keeps only one required action, while our run may require multiple function calls, this case is handled in the inner cycle, so that we can add tool output to the existing array of outputs. After all required actions were submitted we clean up the array of required actions.
605605

606606
```C# Snippet:FunctionsWithStreamingUpdateCycle
607607
List<ToolOutput> toolOutputs = [];

0 commit comments

Comments
 (0)