Converts a PowerShell function definition to an OpenAI function specification.
ConvertFrom-FunctionDefinition [[-FunctionInfo] <CommandInfo[]>]
This function takes a PowerShell function definition and converts it to an OpenAI function specification.
ConvertFrom-FunctionDefinition -FunctionInfo (Get-Command Get-ChildItem)
This example converts the Get-ChildItem function to an OpenAI function specification.
An array of CommandInfo objects representing the functions to convert.
Type: CommandInfo[] Parameter Sets: (All) Aliases: Required: False Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False
There was an error while loading. Please reload this page.