File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/Custom/Assistants/Streaming Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public IReadOnlyList<RunStepUpdateCodeInterpreterOutput> CodeInterpreterOutputs
4545 => _asCodeCall ? . CodeInterpreter ? . Outputs ;
4646
4747 /// <inheritdoc cref="InternalRunStepDeltaStepDetailsToolCallsFunctionObjectFunction.Name"/>
48- public string FunctionName => _asFunctionCall . Function ? . Name ;
48+ public string FunctionName => _asFunctionCall ? . Function ? . Name ;
4949
5050 /// <inheritdoc cref="InternalRunStepDeltaStepDetailsToolCallsFunctionObjectFunction.Arguments"/>
5151 public string FunctionArguments => _asFunctionCall ? . Function ? . Arguments ;
Original file line number Diff line number Diff line change @@ -1015,6 +1015,12 @@ public async Task BasicFileSearchStreamingWorks()
10151015 {
10161016 message += $ "{ contentUpdate . Text } ";
10171017 }
1018+ else if ( update is RunStepDetailsUpdate detailUpdate )
1019+ {
1020+ string ? functionName = "none" ; // expect null assignment on next line
1021+ Assert . DoesNotThrow ( ( ) => functionName = detailUpdate . FunctionName ) ;
1022+ Assert . Null ( functionName ) ;
1023+ }
10181024 }
10191025 }
10201026 else
You can’t perform that action at this time.
0 commit comments