IntelligenceX
Command

Disconnect-IntelligenceX

Module
IntelligenceX.PowerShell
Inputs
IntelligenceX.OpenAI.IntelligenceXClient

Disconnects the active IntelligenceX client and clears local session context.

Syntax

Disconnect-IntelligenceX
[-Client <IntelligenceXClient>]
[<CommonParameters>]
#

Examples

Example 1

Disconnect-IntelligenceX

Disconnect the active client

Example 2

Disconnect-IntelligenceX -Client $client

Disconnect a specific client object

Example 3

try { Invoke-IntelligenceXChat -Text "Summarize changes" } finally { Disconnect-IntelligenceX }

Clean up at the end of a script

Parameters

-Client IntelligenceXClient optionalpipeline: true (ByValue)
Client instance to disconnect. Defaults to the active client.

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.