Invoke-AIShell
Sends a query to the connected AIShell window. Results are shown in the AIShell window.
Sintassi
Default (impostazione predefinita).
Invoke-AIShell
-Query <String[]>
[-Agent <String>]
[-Context <PSObject>]
[<CommonParameters>]
Clipboard
Invoke-AIShell
-Query <String[]>
[-Agent <String>]
[-ContextFromClipboard]
[<CommonParameters>]
PostCode
Invoke-AIShell
[-PostCode]
[<CommonParameters>]
CopyCode
Invoke-AIShell
[-CopyCode]
[<CommonParameters>]
Exit
Invoke-AIShell
[-Exit]
[<CommonParameters>]
Descrizione
This cmdlet sends a query to the open AIShell agent and results are shown in the AIShell window.
Esempio
Example 1 - Send a query to the AIShell agent
Start-AIShell
Invoke-AIShell -Query "How do I list out the 5 most CPU intensive processes?"
This example sends a query, "How do I list out the 5 most CPU intensive processes?" to the AIShell
agent. Responses are given in the AIShell window.
Parametri
-Agent
Specifies the agent to use in the current AIShell session. If not specified, AIShell uses the
currently selected agent.
Proprietà dei parametri
Tipo: String
Valore predefinito: None
Supporta i caratteri jolly: False
DontShow: False
Set di parametri
Default
Posizione: Named
Obbligatorio: False
Valore dalla pipeline: False
Valore dalla pipeline in base al nome della proprietà: False
Valore dagli argomenti rimanenti: False
Clipboard
Posizione: Named
Obbligatorio: False
Valore dalla pipeline: False
Valore dalla pipeline in base al nome della proprietà: False
Valore dagli argomenti rimanenti: False
-Context
Additional context information you want to send to the AIShell agent.
Proprietà dei parametri
Tipo: PSObject
Valore predefinito: None
Supporta i caratteri jolly: False
DontShow: False
Set di parametri
Default
Posizione: Named
Obbligatorio: False
Valore dalla pipeline: True
Valore dalla pipeline in base al nome della proprietà: False
Valore dagli argomenti rimanenti: False
-ContextFromClipboard
Use the content in your clipboard as context information for the AIShell agent.
Proprietà dei parametri
Tipo: SwitchParameter
Valore predefinito: None
Supporta i caratteri jolly: False
DontShow: False
Set di parametri
Clipboard
Posizione: Named
Obbligatorio: True
Valore dalla pipeline: False
Valore dalla pipeline in base al nome della proprietà: False
Valore dagli argomenti rimanenti: False
-CopyCode
Invokes /code copy command in the AIShell sidecar session. This command copies the code in the
AIShell sidecar session to the clipboard.
Proprietà dei parametri
Tipo: SwitchParameter
Valore predefinito: None
Supporta i caratteri jolly: False
DontShow: False
Set di parametri
CopyCode
Posizione: Named
Obbligatorio: False
Valore dalla pipeline: False
Valore dalla pipeline in base al nome della proprietà: False
Valore dagli argomenti rimanenti: False
-Exit
Invokes /exit command in the AIShell sidecar session. This command closes the AIShell
sidecar session.
Proprietà dei parametri
Tipo: SwitchParameter
Valore predefinito: None
Supporta i caratteri jolly: False
DontShow: False
Set di parametri
Exit
Posizione: Named
Obbligatorio: False
Valore dalla pipeline: False
Valore dalla pipeline in base al nome della proprietà: False
Valore dagli argomenti rimanenti: False
-PostCode
Invokes /code post command in the AIShell sidecar session. This command posts the code in the
AIShell sidecar session to your PowerShell session.
Proprietà dei parametri
Tipo: SwitchParameter
Valore predefinito: None
Supporta i caratteri jolly: False
DontShow: False
Set di parametri
PostCode
Posizione: Named
Obbligatorio: False
Valore dalla pipeline: False
Valore dalla pipeline in base al nome della proprietà: False
Valore dagli argomenti rimanenti: False
-Query
The user input to send to the AIShell agent.
Proprietà dei parametri
Tipo: String [ ]
Valore predefinito: None
Supporta i caratteri jolly: False
DontShow: False
Set di parametri
Default
Posizione: Named
Obbligatorio: True
Valore dalla pipeline: False
Valore dalla pipeline in base al nome della proprietà: False
Valore dagli argomenti rimanenti: False
Clipboard
Posizione: Named
Obbligatorio: True
Valore dalla pipeline: False
Valore dalla pipeline in base al nome della proprietà: False
Valore dagli argomenti rimanenti: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Output
Note
PowerShell includes the following alias for this cmdlet: