Skip to content

New OAIThreadQuery

dfinke edited this page Apr 20, 2024 · 2 revisions

New-OAIThreadQuery

SYNOPSIS

Creates a new thread query.

SYNTAX

New-OAIThreadQuery [-UserInput] <Object> [-Assistant] <Object> [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

The New-OAIThreadQuery function creates a new thread query by invoking the New-OAIThread cmdlet and submitting a message using the Submit-OAIMessage cmdlet.

EXAMPLES

EXAMPLE 1

New-OAIThreadQuery -UserInput "Hello" -Assistant $assistant

This example creates a new thread query with the user input "Hello" and the specified assistant.

PARAMETERS

-UserInput

The user input to be included in the query.

Type: Object
Parameter Sets: (All)
Aliases:

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

-Assistant

The assistant to be used for the query.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
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

System.Object[]

The output consists of an array containing the created thread, the run status, and the message.

NOTES

RELATED LINKS

Clone this wiki locally