Skip to content

Invoke SimpleQuestion

dfinke edited this page Apr 20, 2024 · 2 revisions

Invoke-SimpleQuestion

SYNOPSIS

Invokes a simple question to an AI assistant.

SYNTAX

Invoke-SimpleQuestion [-Question] <Object> [[-AssistantId] <Object>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

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.

EXAMPLES

EXAMPLE 1

$assistant = New-OAIAssistant
Invoke-SimpleQuestion -Question "What is the meaning of life?" -AssistantId $assistant.Id
Remove-OAIAssistant -Id $assistant.Id

PARAMETERS

-Question

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: False

-AssistantId

The 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

-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