@@ -392,7 +392,7 @@ public void LoggerContextIsSet()
392392 [ InlineData ( DurableFunctionType . None , false ) ]
393393 [ InlineData ( DurableFunctionType . OrchestrationFunction , false ) ]
394394 [ InlineData ( DurableFunctionType . ActivityFunction , true ) ]
395- internal void SuppressPipelineTracesForDurableActivityFunctionOnly ( DurableFunctionType durableFunctionType , bool shouldSuppressPipelineTraces )
395+ internal void SuppressPipelineTracesForDurableActivityFunction ( DurableFunctionType durableFunctionType , bool shouldSuppressPipelineTraces )
396396 {
397397 s_testLogger . FullLog . Clear ( ) ;
398398
@@ -416,6 +416,50 @@ internal void SuppressPipelineTracesForDurableActivityFunctionOnly(DurableFuncti
416416 }
417417 }
418418
419+ [ Theory ]
420+ [ InlineData ( "httpTrigger" , false ) ]
421+ [ InlineData ( "assistantSkillTrigger" , true ) ]
422+ internal void SuppressPipelineTracesForOpenAIAssistantSkillTrigger ( string inputBindingType , bool shouldSuppressPipelineTraces )
423+ {
424+ s_testLogger . FullLog . Clear ( ) ;
425+
426+ var path = Path . Join ( s_funcDirectory , "testFunctionWithOutput.ps1" ) ;
427+
428+ BindingInfo bindingInfo = null ;
429+ string oldBindingType = "" ;
430+ foreach ( var binding in s_functionLoadRequest . Metadata . Bindings )
431+ {
432+ if ( binding . Value . Direction == BindingInfo . Types . Direction . In )
433+ {
434+ bindingInfo = binding . Value ;
435+ oldBindingType = binding . Value . Type ;
436+ binding . Value . Type = inputBindingType ;
437+ break ;
438+ }
439+ }
440+
441+ var ( functionInfo , testManager ) = PrepareFunction ( path , string . Empty ) ;
442+
443+ try
444+ {
445+ FunctionMetadata . RegisterFunctionMetadata ( testManager . InstanceId , functionInfo . OutputBindings ) ;
446+
447+ var result = testManager . InvokeFunction ( functionInfo , null , null , null , CreateOrchestratorInputData ( ) , new FunctionInvocationPerformanceStopwatch ( ) , null ) ;
448+
449+ var relevantLogs = s_testLogger . FullLog . Where ( message => message . StartsWith ( "Information: OUTPUT:" ) ) . ToList ( ) ;
450+ var expected = shouldSuppressPipelineTraces ? new string [ 0 ] : new [ ] { "Information: OUTPUT: Hello" } ;
451+ Assert . Equal ( expected , relevantLogs ) ;
452+ }
453+ finally
454+ {
455+ FunctionMetadata . UnregisterFunctionMetadata ( testManager . InstanceId ) ;
456+ if ( bindingInfo != null )
457+ {
458+ bindingInfo . Type = oldBindingType ;
459+ }
460+ }
461+ }
462+
419463 private static List < ParameterBinding > CreateOrchestratorInputData ( )
420464 {
421465 var orchestrationContext = new OrchestrationContext
0 commit comments