-
Notifications
You must be signed in to change notification settings - Fork 14
ConvertFrom FunctionDefinition
dfinke edited this page Apr 20, 2024
·
2 revisions
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