Command
Disconnect-IntelligenceX
Disconnects the active IntelligenceX client and clears local session context.
Syntax
Disconnect-IntelligenceX
[-Client <IntelligenceXClient>]
[<CommonParameters>]#Examples
Example 1
Disconnect-IntelligenceXDisconnect the active client
Example 2
Disconnect-IntelligenceX -Client $clientDisconnect 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
- 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.