// Copyright (c) Microsoft. All rights reserved. using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.AI; using Microsoft.Shared.DiagnosticIds; namespace Microsoft.Agents.AI; /// /// Delegate for running file-based skill scripts. /// /// /// Implementations determine the execution strategy (e.g., local subprocess, hosted code execution environment). /// /// The skill that owns the script. /// The file-based script to run. /// Optional arguments for the script, provided by the agent/LLM. /// Cancellation token. /// The script execution result. [Experimental(DiagnosticIds.Experiments.AgentsAIExperiments)] public delegate Task AgentFileSkillScriptRunner( AgentFileSkill skill, AgentFileSkillScript script, AIFunctionArguments arguments, CancellationToken cancellationToken);