AgentFileSkillScriptRunner Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Delegate for running file-based skill scripts.
public delegate System.Threading.Tasks.Task<object?> AgentFileSkillScriptRunner(AgentFileSkill skill, AgentFileSkillScript script, JsonElement? arguments, IServiceProvider? serviceProvider, CancellationToken cancellationToken);
type AgentFileSkillScriptRunner = delegate of AgentFileSkill * AgentFileSkillScript * Nullable<JsonElement> * IServiceProvider * CancellationToken -> Task<obj>
Public Delegate Function AgentFileSkillScriptRunner(skill As AgentFileSkill, script As AgentFileSkillScript, arguments As Nullable(Of JsonElement), serviceProvider As IServiceProvider, cancellationToken As CancellationToken) As Task(Of Object)
Parameters
- skill
- AgentFileSkill
The skill that owns the script.
- script
- AgentFileSkillScript
The file-based script to run.
- arguments
- Nullable<JsonElement>
Raw JSON arguments for the script, in the shape described by ParametersSchema.
- serviceProvider
- IServiceProvider
Optional service provider for dependency injection.
- cancellationToken
- CancellationToken
Cancellation token.
Return Value
The script execution result.
Remarks
Implementations determine the execution strategy (e.g., local subprocess, hosted code execution environment). The arguments parameter preserves the raw JSON sent by the caller, in the shape described by ParametersSchema.