-
Notifications
You must be signed in to change notification settings - Fork 28
Invoke SimpleQuestion
dfinke edited this page Apr 20, 2024
·
2 revisions
Invokes a simple question to an AI assistant.
Invoke-SimpleQuestion [-Question] <Object> [[-AssistantId] <Object>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
The Invoke-SimpleQuestion function is used to ask a simple question to an AI assistant. It requires the AssistantId parameter to specify the ID of the assistant to interact with. The function sends the question to the assistant, waits for the response, and returns the assistant's answer.
$assistant = New-OAIAssistant
Invoke-SimpleQuestion -Question "What is the meaning of life?" -AssistantId $assistant.Id
Remove-OAIAssistant -Id $assistant.Id
The question to ask the AI assistant.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe ID of the AI assistant to interact with.
Type: Object
Parameter Sets: (All)
Aliases: id
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
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: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.