File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -425,11 +425,16 @@ internal void SuppressPipelineTracesForOpenAIAssistantSkillTrigger(string inputB
425
425
426
426
var path = Path . Join ( s_funcDirectory , "testFunctionWithOutput.ps1" ) ;
427
427
428
+ BindingInfo bindingInfo = null ;
429
+ string oldBindingType = "" ;
428
430
foreach ( var binding in s_functionLoadRequest . Metadata . Bindings )
429
431
{
430
432
if ( binding . Value . Direction == BindingInfo . Types . Direction . In )
431
433
{
434
+ bindingInfo = binding . Value ;
435
+ oldBindingType = binding . Value . Type ;
432
436
binding . Value . Type = inputBindingType ;
437
+ break ;
433
438
}
434
439
}
435
440
@@ -448,6 +453,10 @@ internal void SuppressPipelineTracesForOpenAIAssistantSkillTrigger(string inputB
448
453
finally
449
454
{
450
455
FunctionMetadata . UnregisterFunctionMetadata ( testManager . InstanceId ) ;
456
+ if ( bindingInfo != null )
457
+ {
458
+ bindingInfo . Type = oldBindingType ;
459
+ }
451
460
}
452
461
}
453
462
You can’t perform that action at this time.
0 commit comments