PowerShell AI Invoke-AIExplain

preview_player
Показать описание
Get it: Install-Module PowerShellAI

In this video, I’ll be exploring a new feature in PowerShellAI called Invoke-AIExplain.

This lets ChatGPT provide additional information and context about the last command you ran while using PowerShell. It also supports explaining any command in your history. By leveraging the power of artificial intelligence, you can make working with PowerSheller easier and more efficient, allowing you to spend less time figuring things out and more time being productive.
Рекомендации по теме
Комментарии
Автор

Update-Module -Name PowerShellAI
Thank you!

dj
Автор

Again, another great command Doug, thanx! My initial thought was: Why not pipe it to "explain", but that would just get the output-objects of the previous command, unless everything before explain was quoted (just a string). Also a default "-explain" parameter (like: -confirm) would be great... but that would just explain that very command.. not the whole line... and to able to make it a default param for advanced functions, that's a whole different ballgame... (not everyone has an openAI-APIkey and the PS-team should agree, etc...). Anyway, it was a nice thought process for a PS novice like me. Your method of taking a history line (last as default) seems best. Can't wait what this year brings... GPT4 just released. I'm very excited and curious to see what PS magic you come up with handling audio/video/pics besides text. Another idea is to use possibly use something like jupyter notebooks (sorry, I forgot the one you use with your demo's) that would also be able to handle different (multi)media types besides text and structured data. Which would allow a stream of processes interacting with GPT. Again, I'm just shooting from the hip... ;-) Cheers!

matrixview
Автор

I was staring at that Get-ScheduledTask for a while, trying to figure out what $script:info was. In the end, I landed on it's just an available variable to store info into. How far off am I?

deemon