Cmdlet
New-IntelligenceXThreadFork
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
- Identifier of the source thread to fork.
- Client IntelligenceXClient
- Client instance to use. Defaults to the active client.
- Raw SwitchParameter
- Returns the raw JSON-RPC payload instead of typed thread info.
Outputs
IntelligenceX.Json.JsonValue, IntelligenceX.OpenAI.AppServer.Models.ThreadInfo