# Get-IntelligenceXTurnOutput

Extracts outputs from a turn. Review available syntax, parameters, pipeline guidance, and reference details in IntelligenceX PowerShell Cmdlet Reference.

Command 

**Module**

`IntelligenceX.PowerShell`

**Inputs**

`IntelligenceX.OpenAI.AppServer.Models.TurnInfo`

**Outputs**

`IntelligenceX.OpenAI.AppServer.Models.TurnOutput`

Extracts outputs from a turn.

## Syntax

```
Get-IntelligenceXTurnOutput
-Turn <TurnInfo>
[-DownloadUrls]
[-FileNamePrefix <string>]
[-First <int>]
[-Images]
[-Overwrite]
[-PassThru]
[-SaveImagesTo <string>]
[-Text]
[<CommonParameters>]
```

[#](#method-get-intelligencexturnoutput-turninfo-switchparameter-string-int-switchparameter-switchparameter-switchparameter-string-switchparameter)

## Examples

### Example 1

```powershell
$turn | Get-IntelligenceXTurnOutput
```

Get all outputs

### Example 2

```powershell
$turn | Get-IntelligenceXTurnOutput -Images -SaveImagesTo "C:\temp\ix"
```

Save image outputs to disk

### Example 3

```powershell
$turn | Get-IntelligenceXTurnOutput -Text -First 1
```

Return only the first text output

## Parameters

**-Turn TurnInfo requiredpipeline: true (ByValue)**

Turn to read outputs from.

**-DownloadUrls SwitchParameter optional**

Download image URLs when saving images.

**-FileNamePrefix string optional**

Prefix for saved image file names.

**-First int optional**

Return only the first N outputs.

**-Images SwitchParameter optional**

Return only image outputs.

**-Overwrite SwitchParameter optional**

Overwrite existing files when saving images.

**-PassThru SwitchParameter optional**

Output original TurnOutput objects when saving images.

**-SaveImagesTo string optional**

Save image outputs to the specified directory.

**-Text SwitchParameter optional**

Return only text outputs.

## 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:D4C4588F170D9814DC53FA0946A81F8B89FE988C971B53B4D355B1809979B34D -->
