Skip to content

Commit 66022ea

Browse files
committed
OpenAI skill trigger/Return value from pipeline
1 parent fa76236 commit 66022ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PowerShell/PowerShellManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
namespace Microsoft.Azure.Functions.PowerShellWorker.PowerShell
1717
{
1818
using Microsoft.Azure.Functions.PowerShellWorker.OpenTelemetry;
19+
using System.Linq;
1920
using System.Management.Automation;
2021
using System.Text;
2122

@@ -247,7 +248,8 @@ public Hashtable InvokeFunction(
247248
{
248249
_pwsh.AddCommand(Utils.TracePipelineObjectCmdlet);
249250
}
250-
return ExecuteUserCode(isActivityFunction, outputBindings);
251+
var isOpenAiSkillTrigger = functionInfo.InputBindings.Where(x => x.Value.Type == "assistantSkillTrigger").Any();
252+
return ExecuteUserCode(isActivityFunction || isOpenAiSkillTrigger, outputBindings);
251253
}
252254
}
253255
catch (RuntimeException e)

0 commit comments

Comments
 (0)