-
Notifications
You must be signed in to change notification settings - Fork 14
Get OAIFunctionCallSpec
Retrieves the OpenAI function call specification for a given function.
Get-OAIFunctionCallSpec [[-functionInfo] <FunctionInfo>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
The Get-OAIFunctionCallSpec function retrieves the OpenAI function call specification for a given function. It takes a FunctionInfo object as input and returns the function call specification in a tool-specific format.
Function Test-Func {param($x)}; $functionInfo = Get-Command -Name "Test-Func"
Get-OAIFunctionCallSpec -functionInfo $functionInfo
This example retrieves the function call specification for the "Get-Process" function.
Specifies the FunctionInfo object representing the function for which to retrieve the function call specification.
Type: FunctionInfo
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.