Skip to content

Export OAIAssistant

dfinke edited this page Apr 20, 2024 · 2 revisions

Export-OAIAssistant

SYNOPSIS

Exports an OpenAI Assistant to a JSON file.

SYNTAX

Export-OAIAssistant [[-AssistantId] <Object>] [[-Path] <Object>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

The Export-OAIAssistant function exports an OpenAI Assistant to a JSON file. It retrieves the assistant using the specified AssistantId and saves its properties to a JSON file at the specified Path.

EXAMPLES

EXAMPLE 1

Export-OAIAssistant -AssistantId "assistant-12345" -Path "C:\Exports\assistant-12345.json"
Exports the OpenAI Assistant with ID "assistant-12345" to a JSON file located at "C:\Exports\assistant-12345.json".

PARAMETERS

-AssistantId

The ID of the OpenAI Assistant to export.

Type: Object
Parameter Sets: (All)
Aliases: id

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Path

The path where the exported JSON file will be saved.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ 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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Clone this wiki locally