Cmdlet
Disconnect-IntelligenceX
Disconnects the active IntelligenceX client and clears local session context.
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
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
Disconnect-IntelligenceX [-Client <IntelligenceXClient>] [<CommonParameters>]#Parameters
- Client IntelligenceXClient
- Client instance to disconnect. Defaults to the active client.