Resolve-Error

Sends the last error in the current session for resolution in the connected AIShell window.

Syntax

Resolve-Error
       [-Agent <String>]
       [-IncludeOutputFromClipboard]
       [<CommonParameters>]

Description

When an error occurs in the current session, this cmdlet sends the error to the AIShell agent for resolution. The command sends the full error object to the current AIShell agent session, which attempts to provide a resolution.

Examples

Example 1 - Resolves the last error

PS> Start-AIShell
#User receives an error

PS> Resolve-Error

This example shows how to ask AIShell to resolve the last error that occurred in the current AIShell session. AIShell analyzes the error and attempts to provide a solution in the AIShell agent window.

Parameters

-Agent

Specifies the agent to use in the current AIShell session. If not specified, AIShell uses the currently selected agent.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IncludeOutputFromClipboard

When this parameter is specified, the output copied to the clipboard is included in the error sent to AIShell.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Object

Notes

PowerShell includes the following alias for this cmdlet:

  • All platforms:
    • fixit