# Resume-IntelligenceXThread

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

Command 

**Module**

`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.

## Syntax

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

[#](#method-resume-intelligencexthread-string-intelligencexclient-switchparameter)

## Examples

### Example 1

```powershell
Resume-IntelligenceXThread -ThreadId $thread.Id
```

Resume a thread by id

### Example 2

```powershell
$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

```powershell
Resume-IntelligenceXThread -ThreadId $thread.Id -Raw
```

Return raw JSON response

## Parameters

**-ThreadId string required**

Identifier of the thread to resume.

**-Client IntelligenceXClient optionalpipeline: true (ByValue)**

Client instance to use. Defaults to the active client.

**-Raw SwitchParameter optional**

Returns the raw JSON-RPC payload instead of typed thread info.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:CE82236F4714D8D5307A5C58AA26504B4ED23748AFABB52C6C8BB98AF97C646F -->
