IntelligenceX
Cmdlet

Resume-IntelligenceXThread

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

Resumes an existing thread so new messages can be sent to it.

Examples

Example 1


Resume-IntelligenceXThread -ThreadId $thread.Id
        

Resume a thread by id

Example 2


$active = Resume-IntelligenceXThread -ThreadId $thread.Id; Send-IntelligenceXMessage -ThreadId $active.Id -Text "Continue from previous context."
        

Resume and send a follow-up message

Example 3


Resume-IntelligenceXThread -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

Resume-IntelligenceXThread -ThreadId <string> [-Client <IntelligenceXClient>] [-Raw] [<CommonParameters>]
#

Parameters

ThreadId string requiredposition: namedpipeline: false
Identifier of the thread to resume.
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