Skip to content

ConvertFrom FunctionDefinition

dfinke edited this page Apr 20, 2024 · 2 revisions

ConvertFrom-FunctionDefinition

SYNOPSIS

Converts a PowerShell function definition to an OpenAI function specification.

SYNTAX

ConvertFrom-FunctionDefinition [[-FunctionInfo] <CommandInfo[]>]

DESCRIPTION

This function takes a PowerShell function definition and converts it to an OpenAI function specification.

EXAMPLES

EXAMPLE 1

ConvertFrom-FunctionDefinition -FunctionInfo (Get-Command Get-ChildItem)

This example converts the Get-ChildItem function to an OpenAI function specification.

PARAMETERS

-FunctionInfo

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

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Clone this wiki locally