IntelligenceX
Cmdlet

New-IntelligenceXThreadFork

Namespace IntelligenceX.PowerShell
Inputs
IntelligenceX.OpenAI.IntelligenceXClient
Outputs
IntelligenceX.Json.JsonValue IntelligenceX.OpenAI.AppServer.Models.ThreadInfo

Creates a new thread fork from an existing thread's history.

Examples

Example 1


New-IntelligenceXThreadFork -ThreadId $thread.Id
        

Fork a thread

Example 2


$fork = New-IntelligenceXThreadFork -ThreadId $thread.Id; Send-IntelligenceXMessage -ThreadId $fork.Id -Text "Take a different approach."
        

Fork and continue conversation in the new thread

Example 3


New-IntelligenceXThreadFork -ThreadId $thread.Id -Raw
        

Return raw JSON response

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-IntelligenceXThreadFork -ThreadId <string> [-Client <IntelligenceXClient>] [-Raw] [<CommonParameters>]
#

Parameters

ThreadId string requiredposition: namedpipeline: false
Identifier of the source thread to fork.
Client IntelligenceXClient optionalposition: namedpipeline: true (ByValue)
Client instance to use. Defaults to the active client.
Raw SwitchParameter optionalposition: namedpipeline: false
Returns the raw JSON-RPC payload instead of typed thread info.

Outputs

IntelligenceX.Json.JsonValue, IntelligenceX.OpenAI.AppServer.Models.ThreadInfo