it-IT/powershai-help.xml
<?xml version="1.0" encoding="utf-8"?> <helpItems schema="maml" xmlns="http://msh"> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Add-PowershaiChatTool</command:name> <command:verb>Add</command:verb> <command:noun>PowershaiChatTool</command:noun> <maml:description> <maml:para>Aggiunge funzioni, script, eseguibili come strumento invocabile da LLM nella chat corrente (o predefinito per tutti).</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Aggiunge funzioni nella sessione corrente all'elenco di chiamate di strumenti consentite! Quando viene aggiunto un comando, viene inviato al modello corrente come opzione per la chiamata di strumenti. L'aiuto disponibile della funzione verrà utilizzato per descriverla, inclusi i parametri. In questo modo, puoi, in fase di esecuzione, aggiungere nuove abilità all'IA che possono essere invocate da LLM ed eseguite da PowershAI. Quando aggiungi script, tutte le funzioni all'interno dello script vengono aggiunte in una sola volta.</maml:para> <maml:para>Per ulteriori informazioni sugli strumenti, consulta l'argomento about_Powershai_Chats</maml:para> <maml:para>MOLTO IMPORTANTE: NON AGGIUNGERE MAI COMANDI CHE NON CONOSCI O CHE POTREBBERO COMPROMETTERE IL TUO COMPUTER. POWERSHELL LO ESEGUIRÀ SU RICHIESTA DI LLM E CON I PARAMETRI CHE LLM INVOCA, E CON LE CREDENZIALI DELL'UTENTE ATTUALE. SE HAI EFFETTUATO L'ACCESSO CON UN ACCOUNT PRIVILEGIATO, COME L'AMMINISTRATORE, NOTA CHE POTRAI ESEGUIRE QUALSIASI AZIONE SU RICHIESTA DI UN SERVER REMOTO (LLM).</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Add-PowershaiChatTool</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>names</maml:name> <maml:description> <maml:para>Nome del comando, percorso dello script o eseguibile Può essere una matrice di stringhe con questi elementi misti. Quando il nome termina con .ps1, viene trattato come uno script (cioè, verranno caricate le funzioni dello script) Se desideri trattare con un comando (esegui lo script), fornisci il parametro -Command, per forzare il trattamento come comando!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>description</maml:name> <maml:description> <maml:para>Descrizione per questo strumento da passare a LLM. Il comando utilizzerà l'aiuto e invierà anche il contenuto descritto Se questo parametro viene aggiunto, viene inviato insieme all'aiuto.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ForceCommand</maml:name> <maml:description> <maml:para>Forza il trattamento come comando. Utile quando vuoi che uno script venga eseguito come comando. ùtil solo quando passi un nome di file ambiguo, che coincide con il nome di un comando!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Chat in cui creare lo strumento</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Global</maml:name> <maml:description> <maml:para>Crea lo strumento a livello globale, ovvero sarà disponibile in tutte le chat</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Clear-PowershaiChat</command:name> <command:verb>Clear</command:verb> <command:noun>PowershaiChat</command:noun> <maml:description> <maml:para>Cancella elementi di una chat!</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Cancella elementi specifici di una chat. Utile per liberare risorse, o per togliere la dipendenza dall'llm a causa della cronologia.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Clear-PowershaiChat</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>History</maml:name> <maml:description> <maml:para>Cancella tutta la cronologia</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Context</maml:name> <maml:description> <maml:para>Cancella il contesto ID della chat. Predefinito: attivo.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Close-HttpRequest</command:name> <command:verb>Close</command:verb> <command:noun>HttpRequest</command:noun> <maml:description> <maml:para>Chiude Http aperto con Start-HttpRequest</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Close-HttpRequest</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>HttpRequest</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Force</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Connect-HuggingFaceSpaceGradio</command:name> <command:verb>Connect</command:verb> <command:noun>HuggingFaceSpaceGradio</command:noun> <maml:description> <maml:para>Connettiti al Gradio di uno Spazio Hugging Face!</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Connect-HuggingFaceSpaceGradio</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>space</maml:name> <maml:description> <maml:para>Spazio a cui connettersi!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Force</maml:name> <maml:description> <maml:para>Forza la connessione</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Convert-GradioParamPowershell</command:name> <command:verb>Convert</command:verb> <command:noun>GradioParamPowershell</command:noun> <maml:description> <maml:para>Convertire-GradioParamPowershell [[-Param] <Object>] [[-value] <Object>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Convert-GradioParamPowershell</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Param</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>value</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>ConvertTo-GoogleContentMessage</command:name> <command:verb>ConvertTo</command:verb> <command:noun>GoogleContentMessage</command:noun> <maml:description> <maml:para>Converte i messaggi di OpenAI in un array di messaggi di contenuto https://ai.google.dev/api/caching#Content</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>ConvertTo-GoogleContentMessage</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>messages</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>ConvertTo-GoogleToolFunction</command:name> <command:verb>ConvertTo</command:verb> <command:noun>GoogleToolFunction</command:noun> <maml:description> <maml:para>ConvertTo-GoogleToolFunction [[-OpenaiTool] <Object>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>ConvertTo-GoogleToolFunction</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>OpenaiTool</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>ConvertTo-OpenaiMessage</command:name> <command:verb>ConvertTo</command:verb> <command:noun>OpenaiMessage</command:noun> <maml:description> <maml:para>Converte array di stringhe e oggetti in un formato di messaggi standard per OpenAI!</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Puoi passare un array misto in cui ogni elemento può essere una stringa o un oggetto. Se è una stringa, può iniziare con il prefisso s, u o a, che significa rispettivamente sistema, utente o assistente. Se è un oggetto, viene aggiunto direttamente all'array risultante.</maml:para> <maml:para>Vedi: https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>ConvertTo-OpenaiMessage</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>prompt</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title> <dev:code>ConvertTo-OpenaiMessage "Questo è un testo",@{role:"assistant";content="Risposta assistente"}, "s:Msg system"</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>ConvertTo-PowershaiContextJson</command:name> <command:verb>ConvertTo</command:verb> <command:noun>PowershaiContextJson</command:noun> <maml:description> <maml:para>Converte il contesto in JSON utilizzando ConverTo-Json</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>ConvertTo-PowershaiContextJson</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>context</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>ConvertTo-PowershaiContextList</command:name> <command:verb>ConvertTo</command:verb> <command:noun>PowershaiContextList</command:noun> <maml:description> <maml:para>Converte l'oggetto in un formato lista usando Format-List.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>ConvertTo-PowershaiContextList</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>context</maml:name> <maml:description> <maml:para>Oggetto che sarà iniettato nel contesto</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>FlParams</maml:name> <maml:description> <maml:para>Parametri del comando Format-List</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: @{}</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>ConvertTo-PowershaiContextOutString</command:name> <command:verb>ConvertTo</command:verb> <command:noun>PowershaiContextOutString</command:noun> <maml:description> <maml:para>Converte il contesto in JSON utilizzando ConverTo-Json</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>ConvertTo-PowershaiContextOutString</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>context</maml:name> <maml:description> <maml:para>Oggetto da iniettare nel contesto</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>ConvertTo-PowershaiContextTable</command:name> <command:verb>ConvertTo</command:verb> <command:noun>PowershaiContextTable</command:noun> <maml:description> <maml:para>Converte l'oggetto in un formato Table usando Format-Table</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>ConvertTo-PowershaiContextTable</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>context</maml:name> <maml:description> <maml:para>Oggetto da iniettare nel contesto</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>FlParams</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: @{}</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Enable-AiScreenshots</command:name> <command:verb>Enable</command:verb> <command:noun>AiScreenshots</command:noun> <maml:description> <maml:para>Abilita lo schermo di spiegazione!</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Lo schermo di spiegazione è una funzionalità che consente di ottenere screenshot di un'area dello schermo e inviarli al LLM che supporta la visione! È una risorsa che è ancora in fase di test, quindi devi abilitarla!</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Enable-AiScreenshots</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Export-PowershaiSettings</command:name> <command:verb>Export</command:verb> <command:noun>PowershaiSettings</command:noun> <maml:description> <maml:para>Esporta le impostazioni della sessione corrente in un file, crittografato da una password</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo cmdlet è utile per salvare le impostazioni, come i Token, in modo sicuro. Richiede una password e la usa per creare un hash e crittografare i dati di configurazione della sessione in AES256. Le impostazioni esportate sono tutte quelle definite nella variabile $POWERSHAI_SETTINGS. Questa variabile è una hashtable che contiene tutti i dati configurati dai provider, inclusi i token. Per impostazione predefinita, le chat non vengono esportate a causa della quantità di dati coinvolti, il che potrebbe rendere il file troppo grande!</maml:para> <maml:para>Il file esportato viene salvato in una directory creata automaticamente, per impostazione predefinita, nella home dell'utente ($HOME). Gli oggetti vengono esportati tramite Serialization, che è lo stesso metodo utilizzato da Export-CliXml. I dati vengono esportati in un formato proprietario che può essere importato solo con Import-PowershaiSettings e fornendo la stessa password. Poiché PowershAI non esegue un'esportazione automatica, si consiglia di richiamare questo comando ogni volta che si verificano modifiche alla configurazione, come l'inclusione di nuovi token. La directory di esportazione può essere qualsiasi percorso valido, inclusi i drive cloud come OneDrive, Dropbox, ecc. Questo comando è stato creato con l'intento di essere interattivo, ovvero richiede l'input dell'utente dalla tastiera.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Export-PowershaiSettings</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ExportDir</maml:name> <maml:description> <maml:para>Directory di esportazione Per impostazione predefinita, è una directory denominata .powershai nel profilo dell'utente, ma è possibile specificare la variabile di ambiente POWERSHAI_EXPORT_DIR per modificarla.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: $Env:POWERSHAI_EXPORT_DIR</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Chats</maml:name> <maml:description> <maml:para>Se specificato, include le chat nell'esportazione Tutte le chat verranno esportate</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples> <command:example> <maml:title>--------- Esportazione delle impostazioni predefinite! ---------</maml:title> <dev:code>Export-PowershaiSettings</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> <command:example> <maml:title>--------------- Esporta tutto, comprese le chat! ---------------</maml:title> <dev:code>Export-PowershaiSettings -Chat</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> <command:example> <maml:title>------------------- Esportazione su OneDrive -------------------</maml:title> <dev:code>$Env:POWERSHAI_EXPORT_DIR = "C:\Users\MyUserName\OneDrive\Powershai" Export-PowershaiSettings</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Format-PowershaiContext</command:name> <command:verb>Format</command:verb> <command:noun>PowershaiContext</command:noun> <maml:description> <maml:para>Formatta un oggetto per essere iniettato nel contesto di un messaggio inviato in una chat Powershai</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Dato che gli LLM elaborano solo stringhe, gli oggetti passati nel contesto devono essere convertiti in un formato stringa, prima di essere iniettati nel prompt. E, poiché esistono diverse rappresentazioni di un oggetto in stringa, Powershai consente all'utente di avere il pieno controllo su questo.</maml:para> <maml:para>Ogni volta che un oggetto deve essere iniettato nel prompt, quando viene invocato con Send-PowershaAIChat, tramite pipeline o parametro Contesto, questo cmdlet verrà invocato. Questo cmdlet è responsabile della trasformazione di questo oggetto in stringa, indipendentemente dall'oggetto, sia esso array, hashtable, personalizzato, ecc.</maml:para> <maml:para>Lo fa invocando la funzione di formattazione configurata usando Set-PowershaiChatContextFormatter In generale, non è necessario invocare questa funzione direttamente, ma potresti volerla invocare quando vuoi fare qualche test!</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Format-PowershaiContext</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>obj</maml:name> <maml:description> <maml:para>Oggetto qualsiasi da iniettare</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>params</maml:name> <maml:description> <maml:para>Parametri da passare alla funzione di formattazione</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>func</maml:name> <maml:description> <maml:para>Sovrascrivere la funzione da invocare. Se non specificato usa il predefinito del chat.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Chat in cui operare</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-AiChat</command:name> <command:verb>Get</command:verb> <command:noun>AiChat</command:noun> <maml:description> <maml:para>Invia messaggi a un LLM e restituisce la risposta</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questa è la forma più basilare di Chat promossa da PowershAI. Con questa funzione, puoi inviare un messaggio a un LLM del provider attuale. Questa funzione è a basso livello, in modo standardizzato, per accedere a un LLM che PowershAI mette a disposizione. Non gestisce la cronologia o il contesto. È utile per invocare prompt semplici, che non richiedono più interazioni come in una Chat. Nonostante supporti il Functon Calling, non esegue alcun codice e restituisce solo la risposta del modello.</maml:para> <maml:para></maml:para> <maml:para></maml:para> <maml:para>** INFORMAZIONI PER I PROVIDER Il provider deve implementare la funzione Chat affinché questa funzionalità sia disponibile. La funzione chat deve restituire un oggetto con la risposta secondo la stessa specifica di OpenAI, funzione Chat Completion. I seguenti link servono come riferimento: https://platform.openai.com/docs/guides/chat-completions https://platform.openai.com/docs/api-reference/chat/object (risposta senza streaming) Il provider deve implementare i parametri di questa funzione. Consulta la documentazione di ciascun parametro per dettagli e come mappare per un provider;</maml:para> <maml:para> Quando il modello non supporta uno dei parametri forniti (cioè, non esiste una funzionalità equivalente o che possa essere implementata in modo equivalente) deve essere restituito un errore.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-AiChat</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>prompt</maml:name> <maml:description> <maml:para>Il prompt da inviare. Deve essere nel formato descritto dalla funzione ConvertTo-OpenaiMessage</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>temperature</maml:name> <maml:description> <maml:para>Temperatura del modello</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: 0.6</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Nome del modello. Se non specificato, utilizza il default del provider.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxTokens</maml:name> <maml:description> <maml:para>Massimo numero di token da restituire</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: 1024</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ResponseFormat</maml:name> <maml:description> <maml:para>Formato della risposta I formati accettabili e il comportamento devono seguire gli stessi di OpenAI: https://platform.openai.com/docs/api-reference/chat/create#chat-create-response_format Scorciatoie: "json"|"json_object", equivale a {"type": "json_object"} l'oggetto deve specificare uno schema come se fosse passato direttamente all'API di OpenAI, nel campo response_format.json_schema</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Functions</maml:name> <maml:description> <maml:para>Elenco di strumenti che devono essere invocati! Puoi usare comandi come Get-OpenaiTool*, per trasformare funzioni PowerShell facilmente nel formato atteso! Se il modello invoca la funzione, la risposta, sia in streaming che normale, deve seguire anche il modello di tool calling di OpenAI. Questo parametro deve seguire lo stesso schema del Function Calling di OpenAI: https://platform.openai.com/docs/api-reference/chat/create#chat-create-tools</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: @()</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>RawParams</maml:name> <maml:description> <maml:para>Specifica parametri diretti dell'API del provider. Questo sovrascriverà i valori che sono stati calcolati e generati in base agli altri parametri.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 7</maml:para> <maml:para>Default Value: @{}</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>StreamCallback</maml:name> <maml:description> <maml:para>Abilita il modello Stream Devi specificare un ScriptBlock che verrà invocato per ogni testo generato dal LLM. Lo script deve ricevere un parametro che rappresenta ciascun pezzo, nello stesso formato di streaming restituito Questo parametro è un oggetto che conterrà la proprietà choices, che è lo stesso schema restituito dallo streaming di OpenAI: https://platform.openai.com/docs/api-reference/chat/streaming</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 8</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>IncludeRawResp</maml:name> <maml:description> <maml:para>Includere la risposta dell'API in un campo chiamato IncludeRawResp</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-AiCurrentProvider</command:name> <command:verb>Get</command:verb> <command:noun>AiCurrentProvider</command:noun> <maml:description> <maml:para>Ottiene il provider attivo</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Restituisce l'oggetto che rappresenta il provider attivo. I provider sono implementati come oggetti e sono memorizzati nella memoria della sessione, in una variabile globale. Questa funzione restituisce il provider attivo, che è stato definito con il comando Set-AiProvider.</maml:para> <maml:para>L'oggetto restituito è una hashtable che contiene tutti i campi del provider. Questo comando è comunemente usato dai provider per ottenere il nome del provider attivo. Il parametro -ContextProvider restituisce il provider corrente in cui lo script sta eseguendo. Se sta eseguendo in uno script di un provider, restituirà quel provider, invece del provider definito con Set-AiProvider.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-AiCurrentProvider</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ContextProvider</maml:name> <maml:description> <maml:para>Se abilitato, usa il provider di contesto, ovvero se il codice sta eseguendo in un file nella directory di un provider, assume questo provider. Altrimenti, ottiene il provider abilitato attualmente.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-AiModels</command:name> <command:verb>Get</command:verb> <command:noun>AiModels</command:noun> <maml:description> <maml:para>Elenca i modelli disponibili nel provider attuale</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo comando elenca tutti gli LLM che possono essere utilizzati con il provider attuale per l'uso in PowershaiChat. Questa funzione dipende dal fatto che il provider implementi la funzione GetModels.</maml:para> <maml:para>L'oggetto restituito varia a seconda del provider, ma ogni provider deve restituire un array di oggetti, ognuno dei quali deve contenere, almeno, la proprietà id, che deve essere una stringa utilizzata per identificare il modello in altri comandi che dipendono da un modello.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-AiModels</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-AiNearProvider</command:name> <command:verb>Get</command:verb> <command:noun>AiNearProvider</command:noun> <maml:description> <maml:para>Ottiene il provider più recente dello script corrente</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo cmdlet è comunemente utilizzato dai provider in modo indiretto tramite Get-AiCurrentProvider. Esamina la callstack di PowerShell e identifica se il chiamante (la funzione che è stata eseguita) fa parte di uno script di un provider. Se lo è, restituisce tale provider.</maml:para> <maml:para>Se la chiamata è stata effettuata da più provider, viene restituito quello più recente. Ad esempio, immagina questo scenario:</maml:para> <maml:para> Utente -> Get-aiChat -> ProviderX_Function -> ProviderY_Function -> Get-AiNearProvider</maml:para> <maml:para>In questo caso, nota che sono coinvolte 2 chiamate di provider. In questo caso, la funzione Get-AiNearProvider restituirà il provider y, poiché è il più recente nella call stack.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-AiNearProvider</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-AiProviders</command:name> <command:verb>Get</command:verb> <command:noun>AiProviders</command:noun> <maml:description> <maml:para>Restituisce i provider disponibili</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo comando elenca i provider implementati da powershai. Per saperne di più sui provider consulta l'argomento about_Powershai_Providers</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-AiProviders</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-ClaudeMessages</command:name> <command:verb>Get</command:verb> <command:noun>ClaudeMessages</command:noun> <maml:description> <maml:para>Get-ClaudeMessages [[-messages] <Object>] [[-model] <Object>] [[-max_tokens] <Object>] [[-temperature] <Object>] [[-StreamCallback] <Object>] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-ClaudeMessages</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>StreamCallback</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>max_tokens</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>messages</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>temperature</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-GoogleModels</command:name> <command:verb>Get</command:verb> <command:noun>GoogleModels</command:noun> <maml:description> <maml:para>Ottiene l'elenco dei modelli di Google. Endpoint: https://ai.google.dev/api/models</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-GoogleModels</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-GradioInfo</command:name> <command:verb>Get</command:verb> <command:noun>GradioInfo</command:noun> <maml:description> <maml:para></maml:para> </maml:description> </command:details> <maml:description> <maml:para>Ottiene le informazioni sui parametri di uno Space Gradio!</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-GradioInfo</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>AppUrl</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-GradioSession</command:name> <command:verb>Get</command:verb> <command:noun>GradioSession</command:noun> <maml:description> <maml:para>Ottiene tutte le sessioni create, o una con un nome specifico.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-GradioSession</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Session</maml:name> <maml:description> <maml:para>Specifica il nome della sessione. * ottenere tutte . ottenere la default</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: Name</maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: *</maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Like</maml:name> <maml:description> <maml:para>Se -name è una stringa, esegue una ricerca usando l'operatore -like</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ById</maml:name> <maml:description> <maml:para>Ottieni per id (la sessione deve essere un id)</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-GradioSessionApi</command:name> <command:verb>Get</command:verb> <command:noun>GradioSessionApi</command:noun> <maml:description> <maml:para>Elenca tutte le chiamate di una sessione</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-GradioSessionApi</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Session</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-GradioSessionApiProxyFunction</command:name> <command:verb>Get</command:verb> <command:noun>GradioSessionApiProxyFunction</command:noun> <maml:description> <maml:para>Restituisce le funzioni create con New-GradioSessionApiProxy</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-GradioSessionApiProxyFunction</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Session</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-HttpResponse</command:name> <command:verb>Get</command:verb> <command:noun>HttpResponse</command:noun> <maml:description> <maml:para>Get-HttpResponse [[-HttpRequest] <Object>] [[-ReadMode] <Object>] [[-ReadCount] <Object>] [[-Timeout] <Object>] [[-WaitSleep] <Object>] [-ForceEnd] [-StreamsOnly] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-HttpResponse</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ForceEnd</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: switch</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: Named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>HttpRequest</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ReadCount</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ReadMode</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>StreamsOnly</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: switch</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: Named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Timeout</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>WaitSleep</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-HuggingFaceModel</command:name> <command:verb>Get</command:verb> <command:noun>HuggingFaceModel</command:noun> <maml:description> <maml:para>Ottiene informazioni da un modello specifico</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-HuggingFaceModel</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Model</maml:name> <maml:description> <maml:para>Filtra per uno spazio specifico</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-HuggingFaceSpace</command:name> <command:verb>Get</command:verb> <command:noun>HuggingFaceSpace</command:noun> <maml:description> <maml:para>Obtiene informazioni da uno spazio specifico!</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-HuggingFaceSpace</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Space</maml:name> <maml:description> <maml:para>Filtra per uno spazio specifico (o un array di spazi)</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: Single</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>author</maml:name> <maml:description> <maml:para>Filtra tutti gli spazi per autore</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: Multiple</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>My</maml:name> <maml:description> <maml:para>Filtra tutti gli spazi dell'utente corrente!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: Multiple</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>NoGradioSession</maml:name> <maml:description> <maml:para>Non crea una sessione Gradio automatica. Per impostazione predefinita, negli spazi Gradio, crea già una sessione Gradio!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-HuggingFaceWhoami</command:name> <command:verb>Get</command:verb> <command:noun>HuggingFaceWhoami</command:noun> <maml:description> <maml:para>Ottiene informazioni sull'utente attualmente connesso https://huggingface.co/docs/hub/api#get-apiwhoami-v2</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-HuggingFaceWhoami</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>token</maml:name> <maml:description> <maml:para>usare un token alternativo per controllare la validità!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-MaritalkChat</command:name> <command:verb>Get</command:verb> <command:noun>MaritalkChat</command:noun> <maml:description> <maml:para>Get-MaritalkChat [[-prompt] <Object>] [[-temperature] <Object>] [[-model] <Object>] [[-MaxTokens] <Object>] [[-ResponseFormat] <Object>] [[-Functions] <Object>] [[-RawParams] <Object>] [[-StreamCallback] <Object>] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-MaritalkChat</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Functions</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxTokens</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>RawParams</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ResponseFormat</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>StreamCallback</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 7</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>prompt</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>temperature</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-MaritalkModels</command:name> <command:verb>Get</command:verb> <command:noun>MaritalkModels</command:noun> <maml:description> <maml:para>Ottieni modelli Maritalk</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-MaritalkModels</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-OllamaTags</command:name> <command:verb>Get</command:verb> <command:noun>OllamaTags</command:noun> <maml:description> <maml:para>Ottieni Get-OllamaTags [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-OllamaTags</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-OpenAiAnswerCost</command:name> <command:verb>Get</command:verb> <command:noun>OpenAiAnswerCost</command:noun> <maml:description> <maml:para>Ottieni il costo della risposta di OpenAI [[-answers] <Oggetto>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-OpenAiAnswerCost</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>answers</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-OpenaiChat</command:name> <command:verb>Get</command:verb> <command:noun>OpenaiChat</command:noun> <maml:description> <maml:para>Get-OpenaiChat [[-prompt] <Object>] [[-temperature] <Object>] [[-model] <Object>] [[-MaxTokens] <Object>] [[-ResponseFormat] <Object>] [[-Functions] <Object>] [[-RawParams] <Object>] [[-StreamCallback] <Object>] [[-endpoint] <Object>] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-OpenaiChat</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Functions</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxTokens</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>RawParams</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ResponseFormat</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>StreamCallback</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 7</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>endpoint</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 8</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>prompt</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>temperature</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-OpenaiEmbeddings</command:name> <command:verb>Get</command:verb> <command:noun>OpenaiEmbeddings</command:noun> <maml:description> <maml:para>Get-OpenaiEmbeddings [[-text] <Object>] [[-model] <Object>] [[-dimensions] <Object>] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-OpenaiEmbeddings</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>dimensions</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>text</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-OpenaiModels</command:name> <command:verb>Get</command:verb> <command:noun>OpenaiModels</command:noun> <maml:description> <maml:para>Get-OpenaiModels</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-OpenaiModels</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-OpenAiTextCompletion</command:name> <command:verb>Get</command:verb> <command:noun>OpenAiTextCompletion</command:noun> <maml:description> <maml:para>Get-OpenAiTextCompletion [[-prompt] <Object>] [[-temperature] <Object>] [[-model] <Object>] [[-MaxTokens] <Object>] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-OpenAiTextCompletion</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxTokens</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>prompt</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>temperature</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-OpenaiToolFromCommand</command:name> <command:verb>Get</command:verb> <command:noun>OpenaiToolFromCommand</command:noun> <maml:description> <maml:para></maml:para> </maml:description> </command:details> <maml:description> <maml:para>Converte i comandi di powershell in OpenaiTool.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-OpenaiToolFromCommand</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>functions</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>parameters</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: *</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>UserDescription</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-OpenaiToolFromScript</command:name> <command:verb>Get</command:verb> <command:noun>OpenaiToolFromScript</command:noun> <maml:description> <maml:para></maml:para> </maml:description> </command:details> <maml:description> <maml:para>Funzione di supporto per convertire uno script .ps1 in un formato di schema previsto da OpenAI. Fondamentalmente, ciò che fa questa funzione è leggere un file .ps1 (o stringa) insieme alla sua documentazione di help. Quindi, restituisce un oggetto nel formato specificato da OpenAI in modo che il modello possa essere invocato!</maml:para> <maml:para>Restituisce un hashtable contenente le seguenti chiavi: functions - L'elenco delle funzioni, con il codice letto dal file. Quando il modello viene invocato, puoi eseguire direttamente da qui.</maml:para> <maml:para> tools - Elenco degli strumenti, da inviare nella chiamata a OpenAI.</maml:para> <maml:para>È possibile documentare le funzioni e i parametri seguendo la guida basata sui commenti di PowerShell: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help?view=powershell-7.4</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-OpenaiToolFromScript</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ScriptPath</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-PowershaiChat</command:name> <command:verb>Get</command:verb> <command:noun>PowershaiChat</command:noun> <maml:description> <maml:para>Restituisce uno o più Chat creati con New-PowershaAIChat</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo comando consente di restituire l'oggetto che rappresenta un Powershai Chat. Questo oggetto è l'oggetto a cui fanno riferimento internamente i comandi che operano nel Powershai Chat. Anche se alcuni parametri possono essere modificati direttamente, non è consigliabile farlo. È sempre preferibile utilizzare l'output di questo comando come input per gli altri comandi PowershaiChat.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-PowershaiChat</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Id della chat Nomi speciali: . - Indica la chat stessa * - Indica tutte le chat</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>SetActive</maml:name> <maml:description> <maml:para>Definisce la chat come attiva, quando l'id specificato non è un nome speciale.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>NoError</maml:name> <maml:description> <maml:para>Ignora gli errori di validazione</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-PowershaiChatParameter</command:name> <command:verb>Get</command:verb> <command:noun>PowershaiChatParameter</command:noun> <maml:description> <maml:para>Restituisce l'elenco di parametri disponibili in una chat</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo comando restituisce un oggetto contenente l'elenco delle proprietà. L'oggetto è in realtà un array, in cui ogni elemento rappresenta una proprietà. Questo array restituito ha alcune modifiche per facilitare l'accesso ai parametri. È possibile accedere ai parametri utilizzando direttamente l'oggetto restituito, senza la necessità di filtrare sull'elenco di parametri. Questo è utile quando si desidera accedere a un parametro specifico dell'elenco.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-PowershaiChatParameter</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title> <dev:code>$MyParams = Get-PowershaiChatParameter</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-PowershaiChatTool</command:name> <command:verb>Get</command:verb> <command:noun>PowershaiChatTool</command:noun> <maml:description> <maml:para>Ottieni l'elenco degli strumenti attuali.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Get-PowershaiChatTool</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>tool</maml:name> <maml:description> <maml:para>ottieni specifico per nome o l'oggetto stesso! Se termina con un .ps1, lo tratta come uno script, a meno che non venga utilizzato ForceCommand!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: *</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Enabled</maml:name> <maml:description> <maml:para>elenca solo gli strumenti abilitati</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Chat di origine</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>global</maml:name> <maml:description> <maml:para>Quando si ottiene uno strumento specifico, cercare nell'elenco degli strumenti globali.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ForceCommand</maml:name> <maml:description> <maml:para>Tratta tool come un comando!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-PowershaiContextFormatters</command:name> <command:verb>Get</command:verb> <command:noun>PowershaiContextFormatters</command:noun> <maml:description> <maml:para>Elenca tutti i Context Formatters compatti disponibili</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Alcuni Context Formatters forniti da PowershAI possono avere un nome compatto (o alias, se preferisci), per semplificare la loro definizione. Questo cmdlet restituisce tutti questi nomi che possono essere usati quando si usa Set-PowershaiChatContextFormatter</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-PowershaiContextFormatters</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-PowershaiDefaultParams</command:name> <command:verb>Get</command:verb> <command:noun>PowershaiDefaultParams</command:noun> <maml:description> <maml:para>Ottiene un riferimento alla variabile che definisce i parametri predefiniti</maml:para> </maml:description> </command:details> <maml:description> <maml:para>In PowerShell, i moduli hanno il proprio ambito di variabili. Pertanto, se si tenta di definire questa variabile al di fuori dell'ambito corretto, non influenzerà i comandi dei moduli. Questo comando consente all'utente di accedere alla variabile che controlla il parametro predefinito dei comandi del modulo. Nella maggior parte dei casi, questo verrà utilizzato per il debug, ma, eventualmente, un utente potrebbe voler definire parametri predefiniti.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-PowershaiDefaultParams</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title> <dev:code>L'esempio seguente mostra come definire la variabile di debug predefinita del comando Invoke-Http.</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-PowershaiHelp</command:name> <command:verb>Get</command:verb> <command:noun>PowershaiHelp</command:noun> <maml:description> <maml:para>Utilizza il provider corrente per aiutare ad ottenere aiuto su powershai!</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo cmdlet utilizza i propri comandi di PowershAI per aiutare l'utente ad ottenere aiuto su se stesso. Fondamentalmente, partendo dalla domanda dell'utente, monta un prompt con alcune informazioni comuni e help di base. Quindi, questo viene inviato all'LLM in una chat.</maml:para> <maml:para>A causa del grande volume di dati inviati, è consigliabile utilizzare questo comando solo con provider e modelli che accettano più di 128k e che siano economici. Per ora, questo comando è sperimentale e funziona solo con questi modelli: - Openai gpt-4*</maml:para> <maml:para>Internamente, creerà una Powershai Chat chiamata "_pwshai_help", dove manterrà tutto lo storico!</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-PowershaiHelp</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>helptext</maml:name> <maml:description> <maml:para>Descrivi il testo di aiuto!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>command</maml:name> <maml:description> <maml:para>Se vuoi aiuto per un comando specifico, inserisci il comando qui Non deve essere solo un comando di PowershaiChat.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Recreate</maml:name> <maml:description> <maml:para>Ricrea la chat!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Import-PowershaiSettings</command:name> <command:verb>Import</command:verb> <command:noun>PowershaiSettings</command:noun> <maml:description> <maml:para>Importa una configurazione esportata con Export-PowershaiSettings</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo cmdlet è il pair di Export-PowershaiSettings, e come il nome indica, importa i dati che sono stati esportati. Dovresti assicurarti che la stessa password e lo stesso file siano passati. IMPORTANTE: Questo comando sovrascriverà tutti i dati configurati nella sessione. Eseguilo solo se sei assolutamente sicuro che nessun dato configurato in precedenza possa essere perso. Ad esempio, un nuovo token API generato di recente.</maml:para> <maml:para>Se hai specificato un percorso di esportazione diverso da quello predefinito, usando la variabile POWERSHAI_EXPORT_DIR, dovresti usare lo stesso qui.</maml:para> <maml:para>Il processo di importazione convalida alcuni header per assicurarsi che i dati siano stati decrittati correttamente. Se la password fornita è errata, gli hash non saranno uguali e verrà generato l'errore di password errata.</maml:para> <maml:para>Se, d'altra parte, viene visualizzato un errore di formato file non valido, significa che si è verificata una corruzione nel processo di importazione o che c'è un bug in questo comando. In questo caso, puoi aprire un'issue su github segnalando il problema.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Import-PowershaiSettings</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ExportDir</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: $Env:POWERSHAI_EXPORT_DIR</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples> <command:example> <maml:title>------------------- Importazione predefinita -------------------</maml:title> <dev:code>Import-PowershaiSettings</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> <command:example> <maml:title>------------------- Importazione da OneDrive -------------------</maml:title> <dev:code>$Env:POWERSHAI_EXPORT_DIR = "C:\Users\MyUserName\OneDrive\Powershai" Import-PowershaiSettings</dev:code> <dev:remarks> <maml:para>Importa le impostazioni che sono state esportate in una directory alternativa (OneDrive).</maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-AESEncryption</command:name> <command:verb>Invoke</command:verb> <command:noun>AESEncryption</command:noun> <maml:description> <maml:para>Invoke-AESEncryption -Mode <string> -Key <string> -Text <string> [<CommonParameters>]</maml:para> <maml:para>Invoke-AESEncryption -Mode <string> -Key <string> -Path <string> [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Invoke-AESEncryption</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Key</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: string</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: true</maml:para> <maml:para>Position: Named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Mode</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: string</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: true</maml:para> <maml:para>Position: Named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Path</maml:name> <maml:description> <maml:para>Parameter Set: CryptFile</maml:para> <maml:para>Type: string</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: true</maml:para> <maml:para>Position: Named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Text</maml:name> <maml:description> <maml:para>Parameter Set: CryptText</maml:para> <maml:para>Type: string</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: true</maml:para> <maml:para>Position: Named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-AiChatTools</command:name> <command:verb>Invoke</command:verb> <command:noun>AiChatTools</command:noun> <maml:description> <maml:para>Invia un messaggio a un LLM, con supporto per Tool Calling, ed esegue gli strumenti richiesti dal modello come comandi powershell.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questa è una funzione ausiliaria per aiutare a rendere il processamento degli strumenti più facile con powershell. Si occupa del processamento degli "Strumenti", eseguendo quando il modello lo richiede!</maml:para> <maml:para>Devi passare gli strumenti in un formato specifico, documentato nel topic about_Powershai_Chats Questo formato mappa correttamente funzioni e comandi powershell per lo schema accettabile da OpenAI (OpenAPI Schema). Questo comando racchiude tutta la logica che identifica quando il modello vuole invocare la funzione, l'esecuzione di queste funzioni e l'invio di questa risposta di nuovo al modello. Rimane in questo ciclo fino a quando il modello smette di decidere di invocare ulteriori funzioni, o fino a quando il limite di interazioni (sì, qui chiamiamo interazioni e non iterazioni) con il modello è terminato.</maml:para> <maml:para>Il concetto di interazione è semplice: ogni volta che la funzione invia un prompt al modello, conta come un'integrazione. Di seguito è riportato un flusso tipico che può verificarsi:</maml:para> <maml:para></maml:para> <maml:para>Puoi ottenere ulteriori dettagli sul funzionamento consultando il topic about_Powershai_Chats</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Invoke-AiChatTools</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>prompt</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Tools</maml:name> <maml:description> <maml:para>Array di strumenti, come spiegato nella documentazione di questo comando Usa i risultati di Get-OpenaiTool* per generare i valori possibili. Puoi passare un array di oggetti di tipo OpenaiTool. Se una stessa funzione è definita in più di 1 strumento, la prima trovata nell'ordine definito sarà utilizzata!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>PrevContext</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxTokens</maml:name> <maml:description> <maml:para>massimo output!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: 500</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxInteractions</maml:name> <maml:description> <maml:para>In totale, consentire un massimo di 5 iterazioni!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: 10</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxSeqErrors</maml:name> <maml:description> <maml:para>Numero massimo di errori consecutivi che la tua funzione può generare prima di terminare.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: 2</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>temperature</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 7</maml:para> <maml:para>Default Value: 0.6</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 8</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>on</maml:name> <maml:description> <maml:para>Gestore eventi Ogni chiave è un evento che sarà attivato in qualche momento da questo comando! eventi: answer: attivato dopo aver ottenuto la risposta dal modello (o quando una risposta è disponibile usando lo stream). func: attivato prima di iniziare l'esecuzione di uno strumento richiesto dal modello. exec: attivato dopo che il modello ha eseguito la funzione. error: attivato quando la funzione eseguita genera un errore. stream: attivato quando una risposta è stata inviata (dallo stream) e -DifferentStreamEvent beforeAnswer: Attivato dopo tutte le risposte. Utile quando usato in stream! afterAnswer: Attivato prima di iniziare le risposte. Utile quando usato in stream!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 9</maml:para> <maml:para>Default Value: @{}</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Json</maml:name> <maml:description> <maml:para>Invia il response_format = "json", forzando il modello a restituire un json.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>RawParams</maml:name> <maml:description> <maml:para>Aggiungi parametri personalizzati direttamente nella chiamata (sovrascriverà i parametri definiti automaticamente).</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 10</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Stream</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-AiScreenshots</command:name> <command:verb>Invoke</command:verb> <command:noun>AiScreenshots</command:noun> <maml:description> <maml:para>Cattura costantemente schermate e le invia al modello attivo. Questo comando è ESPERIMENTALE e potrebbe cambiare o non essere disponibile nelle prossime versioni!</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo comando consente, in un ciclo, di ottenere screenshot dello schermo!</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Invoke-AiScreenshots</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>prompt</maml:name> <maml:description> <maml:para>Prompt predefinito da utilizzare con l'immagine inviata!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: Spiega questa immagine</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>repeat</maml:name> <maml:description> <maml:para>Rimane in loop facendo vari screenshot Per impostazione predefinita, viene utilizzata la modalità manuale, in cui è necessario premere un tasto per continuare. Le seguenti chiavi hanno funzioni speciali: c - pulisce lo schermo ctrl + c - termina il comando</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>AutoMs</maml:name> <maml:description> <maml:para>Se specificato, abilita la modalità di ripetizione automatica, in cui ogni numero di ms specificati, invierà allo schermo. ATTENZIONE: In modalità automatica, potresti vedere la finestra lampeggiare costantemente, il che potrebbe essere dannoso per la lettura.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: $nulls</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>RecreateChat</maml:name> <maml:description> <maml:para>Ricrea la chat utilizzata!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-GoogleGenerateContent</command:name> <command:verb>Invoke</command:verb> <command:noun>GoogleGenerateContent</command:noun> <maml:description> <maml:para>Endpoint: https://ai.google.dev/api/generate-content Stream: https://ai.google.dev/api/generate-content#method:-models.streamgeneratecontent</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Invoke-GoogleGenerateContent</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>messages</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: @()</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: gemini-1.5-flash</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>StreamCallback</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>RawParams</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: @{}</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Tools</maml:name> <maml:description> <maml:para>Parameter Set: (Tutti)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-GradioDynamicApi</command:name> <command:verb>Invoke</command:verb> <command:noun>GradioDynamicApi</command:noun> <maml:description> <maml:para>Invoca un endpoint dell'API.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo è un altro cmdlet reso disponibile per invocare l'API di Gradio! I parametri sono resi disponibili dinamicamente, quindi la loro Guida non è disponibile con Get-Help.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Invoke-GradioDynamicApi</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ApiName</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Session</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-GradioHttp</command:name> <command:verb>Invoke</command:verb> <command:noun>GradioHttp</command:noun> <maml:description> <maml:para></maml:para> </maml:description> </command:details> <maml:description> <maml:para>Esegue chiamate HTTP per Gradio e aggiunge già le intestazioni comuni, come autenticazione, ecc.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Invoke-GradioHttp</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>url</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>method</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: GET</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>data</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ContentType</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: application/json</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>StreamCallback</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>token</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-GradioSessionApi</command:name> <command:verb>Invoke</command:verb> <command:noun>GradioSessionApi</command:noun> <maml:description> <maml:para>Crea una nuova chiamata a un endpoint nella sessione attuale.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Esegue una chiamata utilizzando l'API di Gradio, a un endpoint specifico e passando i parametri desiderati. Questa chiamata genererà un GradioApiEvent (vedi Send-GradioApi), che sarà salvato internamente nelle configurazioni della sessione. Questo oggetto contiene tutto ciò che è necessario per ottenere il risultato dell'API. Il cmdlet restituirà un oggetto di tipo SessionApiEvent contenente le seguenti proprietà: id - Id interno dell'evento generato. event - L'evento interno generato. Può essere utilizzato direttamente con i cmdlet che manipolano eventi.</maml:para> <maml:para>Le sessioni hanno un limite di chiamate definite. L'obiettivo è impedire di creare chiamate indefinite in modo da non perdere il controllo.</maml:para> <maml:para>Esistono due opzioni della sessione che influenzano la chiamata (possono essere modificate con Set-GradioSession): - MaxCalls Controlla il massimo numero di chiamate che possono essere create</maml:para> <maml:para> - MaxCallsPolicy Controlla cosa fare quando il massimo viene raggiunto. Valori possibili: - Error = risulta in errore! - Remove = rimuove la più antica - Warning = Mostra un avviso, ma consente di superare il limite.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Invoke-GradioSessionApi</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ApiName</maml:name> <maml:description> <maml:para>Nome dell'endpoint (senza la barra iniziale)</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Params</maml:name> <maml:description> <maml:para>Elenco dei parametri Se è un array, passa direttamente all'API di Gradio Se è una hashtable, monta l'array in base alla posizione dei parametri restituiti da /info</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>EventId</maml:name> <maml:description> <maml:para>SE specificato, crea con un evento id già esistente (può essere stato generato al di fuori del modulo).</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>session</maml:name> <maml:description> <maml:para>Sessione</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Token</maml:name> <maml:description> <maml:para>Forzare l'uso di un nuovo token. Se "public", allora non usa alcun token!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-Http</command:name> <command:verb>Invoke</command:verb> <command:noun>Http</command:noun> <maml:description> <maml:para>Invoke-Http [[-url] <Object>] [[-data] <Object>] [[-method] <Object>] [[-contentType] <Object>] [[-Encoding] <Object>] [[-headers] <Object>] [[-SseCallBack] <Object>] [[-DebugVarName] <Object>] [[-Timeout] <Object>] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Invoke-Http</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>DebugVarName</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 7</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Encoding</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>SseCallBack</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Timeout</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 8</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>contentType</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>data</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>headers</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>method</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>url</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-HttpOld</command:name> <command:verb>Invoke</command:verb> <command:noun>HttpOld</command:noun> <maml:description> <maml:para>Invoke-HttpOld [[-url] <Object>] [[-data] <Object>] [[-method] <Object>] [[-contentType] <Object>] [[-Encoding] <Object>] [[-headers] <Object>] [[-SseCallBack] <Object>] [[-DebugVarPrefix] <Object>] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Invoke-HttpOld</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>DebugVarPrefix</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 7</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Encoding</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>SseCallBack</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>contentType</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>data</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>headers</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>method</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>url</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-HuggingFaceHub</command:name> <command:verb>Invoke</command:verb> <command:noun>HuggingFaceHub</command:noun> <maml:description> <maml:para>Invoca l'API di Hugging Hub. https://huggingface.co/docs/hub/en/api</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Invoke-HuggingFaceHub</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>endpoint</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>search</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>author</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>filter</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>direction</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>limit</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>sort</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 7</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Desc</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>full</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>config</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>RawParams</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 8</maml:para> <maml:para>Default Value: @{}</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Public</maml:name> <maml:description> <maml:para>Ignora il token attuale e elenca solo le risorse pubbliche</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Token</maml:name> <maml:description> <maml:para>usa un token specifico</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 9</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-HuggingFaceInferenceApi</command:name> <command:verb>Invoke</command:verb> <command:noun>HuggingFaceInferenceApi</command:noun> <maml:description> <maml:para>Invoca l'API di Inferenza di Hugging Face https://huggingface.co/docs/hub/en/api</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Invoke-HuggingFaceInferenceApi</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>params</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Public</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>OpenaiChatCompletion</maml:name> <maml:description> <maml:para>Costringe a utilizzare l'endpoint di completamento chat Params deve essere trattato come lo stesso params dell'API di Openai (Vedi il cmdlet Get-OpenaiChat). Maggiori informazioni: https://huggingface.co/blog/tgi-messages-api Funziona solo con modelli che possiedono un template chat!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>StreamCallback</maml:name> <maml:description> <maml:para>Stream Callback da utilizzare nel caso di streamS!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-MaritalkApi</command:name> <command:verb>Invoke</command:verb> <command:noun>MaritalkApi</command:noun> <maml:description> <maml:para>Invoke-MaritalkApi [[-endpoint] <Object>] [[-body] <Object>] [[-method] <Object>] [[-Token] <Object>] [[-StreamCallback] <Object>] [-OpenAI] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Invoke-MaritalkApi</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>OpenAI</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: switch</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: Named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>StreamCallback</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Token</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>body</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>endpoint</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>method</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-MaritalkInference</command:name> <command:verb>Invoke</command:verb> <command:noun>MaritalkInference</command:noun> <maml:description> <maml:para>Invoke-MaritalkInference [[-messages] <Object>] [[-MaxTokens] <Object>] [[-temperature] <Object>] [[-top_p] <Object>] [[-model] <Object>] [[-StreamCallback] <Object>] [-do_sample] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Invoke-MaritalkInference</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxTokens</maml:name> <maml:description> <maml:para>Set di Parametri: (Tutti)</maml:para> <maml:para>Tipo: Oggetto</maml:para> <maml:para>Alias: </maml:para> <maml:para>Valori Accettati: </maml:para> <maml:para>Richiesto: falso</maml:para> <maml:para>Posizione: 1</maml:para> <maml:para>Valore Predefinito: </maml:para> <maml:para>Accetta input da pipeline: falso</maml:para> <maml:para>Accetta caratteri jolly:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>StreamCallback</maml:name> <maml:description> <maml:para>Set di Parametri: (Tutti)</maml:para> <maml:para>Tipo: Oggetto</maml:para> <maml:para>Alias: </maml:para> <maml:para>Valori Accettati: </maml:para> <maml:para>Richiesto: falso</maml:para> <maml:para>Posizione: 5</maml:para> <maml:para>Valore Predefinito: </maml:para> <maml:para>Accetta input da pipeline: falso</maml:para> <maml:para>Accetta caratteri jolly:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>do_sample</maml:name> <maml:description> <maml:para>Set di Parametri: (Tutti)</maml:para> <maml:para>Tipo: switch</maml:para> <maml:para>Alias: </maml:para> <maml:para>Valori Accettati: </maml:para> <maml:para>Richiesto: falso</maml:para> <maml:para>Posizione: Named</maml:para> <maml:para>Valore Predefinito: </maml:para> <maml:para>Accetta input da pipeline: falso</maml:para> <maml:para>Accetta caratteri jolly:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>messages</maml:name> <maml:description> <maml:para>Set di Parametri: (Tutti)</maml:para> <maml:para>Tipo: Oggetto</maml:para> <maml:para>Alias: prompt</maml:para> <maml:para>Valori Accettati: </maml:para> <maml:para>Richiesto: falso</maml:para> <maml:para>Posizione: 0</maml:para> <maml:para>Valore Predefinito: </maml:para> <maml:para>Accetta input da pipeline: falso</maml:para> <maml:para>Accetta caratteri jolly:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Set di Parametri: (Tutti)</maml:para> <maml:para>Tipo: Oggetto</maml:para> <maml:para>Alias: </maml:para> <maml:para>Valori Accettati: </maml:para> <maml:para>Richiesto: falso</maml:para> <maml:para>Posizione: 4</maml:para> <maml:para>Valore Predefinito: </maml:para> <maml:para>Accetta input da pipeline: falso</maml:para> <maml:para>Accetta caratteri jolly:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>temperature</maml:name> <maml:description> <maml:para>Set di Parametri: (Tutti)</maml:para> <maml:para>Tipo: Oggetto</maml:para> <maml:para>Alias: </maml:para> <maml:para>Valori Accettati: </maml:para> <maml:para>Richiesto: falso</maml:para> <maml:para>Posizione: 2</maml:para> <maml:para>Valore Predefinito: </maml:para> <maml:para>Accetta input da pipeline: falso</maml:para> <maml:para>Accetta caratteri jolly:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>top_p</maml:name> <maml:description> <maml:para>Set di Parametri: (Tutti)</maml:para> <maml:para>Tipo: Oggetto</maml:para> <maml:para>Alias: </maml:para> <maml:para>Valori Accettati: </maml:para> <maml:para>Richiesto: falso</maml:para> <maml:para>Posizione: 3</maml:para> <maml:para>Valore Predefinito: </maml:para> <maml:para>Accetta input da pipeline: falso</maml:para> <maml:para>Accetta caratteri jolly:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-PowerhsaiConsoleDraw</command:name> <command:verb>Invoke</command:verb> <command:noun>PowerhsaiConsoleDraw</command:noun> <maml:description> <maml:para>Crea un quadro virtuale di testo e scrive caratteri all'interno dei limiti di questo quadro</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Crea un quadro di disegno nella console, che viene aggiornato solo in una regione specifica! Puoi inviare più righe di testo e la funzione si occuperà di mantenere il disegno nello stesso quadro, dando l'impressione che solo una regione venga aggiornata. Per l'effetto desiderato, questa funzione deve essere invocata ripetutamente, senza altri scritti tra le invocazioni!</maml:para> <maml:para>Questa funzione dovrebbe essere utilizzata solo in modalità interattiva di PowerShell, eseguendo in una finestra di console. È utile per situazioni in cui desideri vedere il progresso di un risultato in stringa esattamente nella stessa area, potendo confrontare meglio le variazioni. È solo una funzione ausiliaria.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Invoke-PowerhsaiConsoleDraw</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Text</maml:name> <maml:description> <maml:para>Testo da scrivere. Può essere un array. Se supera i limiti di W e H, verrà troncato Se è un blocco di script, invoca il codice passando l'oggetto del pipeline!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>w</maml:name> <maml:description> <maml:para>Max di caratteri in ogni riga</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: 10</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>h</maml:name> <maml:description> <maml:para>Max di righe</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: 10</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>BlankChar</maml:name> <maml:description> <maml:para>Carattere usato come spazio vuoto</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>PipeObj</maml:name> <maml:description> <maml:para>Oggetto del pipeline</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>PassThru</maml:name> <maml:description> <maml:para>Reinvia l'oggetto</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title> <dev:code>Il seguente esempio scrive 3 stringhe di testo ogni 2 secondi.</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Invoke-PowershaiCommand</command:name> <command:verb>Invoke</command:verb> <command:noun>PowershaiCommand</command:noun> <maml:description> <maml:para>Consente di invocare la maggior parte delle funzioni in modo compatto</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo è un semplice utilitario che consente di invocare varie funzioni in modo più abbreviato nella riga di comando. Si noti che non tutti i comandi potrebbero essere supportati ancora.</maml:para> <maml:para>È meglio usarlo con l'alias pshai.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Invoke-PowershaiCommand</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>CommandName</maml:name> <maml:description> <maml:para>Nome del comando</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>RemArgs</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title> <dev:code>pshai tools # lista le tools</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>New-GradioSession</command:name> <command:verb>New</command:verb> <command:noun>GradioSession</command:noun> <maml:description> <maml:para>Crea una nuova sessione Gradio.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Una sessione rappresenta una connessione a un'app Gradio. Pensa a una sessione come a una scheda del browser aperta e connessa a una determinata app Gradio. I file inviati, le chiamate effettuate, gli accessi, sono tutti registrati in questa sessione.</maml:para> <maml:para>Questo cmdlet restituisce un oggetto che chiamiamo "GradioSession". Questo oggetto può essere utilizzato in altri cmdlet che dipendono dalla sessione (e può essere impostata una sessione attiva, che tutti i cmdlet utilizzano per impostazione predefinita se non specificato). Ogni sessione ha un nome che la identifica in modo univoco. Se non specificato dall'utente, verrà creato automaticamente in base all'URL dell'app. Non possono esistere 2 sessioni con lo stesso nome.</maml:para> <maml:para>Quando si crea una sessione, questo cmdlet salva questa sessione in un repository interno di sessioni.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>New-GradioSession</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>AppUrl</maml:name> <maml:description> <maml:para>Url dell'app</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Name</maml:name> <maml:description> <maml:para>Nome univoco che identifica questa sessione!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>DownloadPath</maml:name> <maml:description> <maml:para>Directory in cui effettuare il download dei file</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Force</maml:name> <maml:description> <maml:para>Force recreate</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>New-GradioSessionApiProxyFunction</command:name> <command:verb>New</command:verb> <command:noun>GradioSessionApiProxyFunction</command:noun> <maml:description> <maml:para></maml:para> </maml:description> </command:details> <maml:description> <maml:para>Crea funzioni che incapsulano le chiamate di un endpoint Gradio (o tutti gli endpoint). Questo cmdlet è molto utile per creare funzioni powershell che incapsulano un endpoint API Gradio, dove i parametri dell'API sono creati come parametri della funzione. Così, le funzionalità native di powershell, come l'autocompletamento, il tipo di dati e la documentazione, possono essere utilizzate e diventa molto facile invocare qualsiasi endpoint di una sessione.</maml:para> <maml:para>Il comando consulta i metadati degli endpoint e dei parametri e crea le funzioni powershell nello scope globale. Con ciò, l'utente può invocare le funzioni direttamente, come se fossero funzioni normali. Ad esempio, supponiamo che un'applicazione Gradio all'indirizzo http://mydemo1.hf.space abbia un endpoint chiamato /GenerateImage per generare immagini con Stable Diffusion. Assumiamo che questa applicazione accetti 2 parametri: Prompt (la descrizione dell'immagine da generare) e Steps (il numero totale di step).</maml:para> <maml:para>Normalmente, potresti usare il comando Invoke-GradioSessionApi, così: </maml:para> <maml:para>$MySession = Get-GradioSession http://mydemo1.hf.space $ApiEvent = $MySession | Invoke-GradioSessionApi -ApiName 'GenerateImage' -params "A car",100</maml:para> <maml:para>Questo avvierebbe l'API e potresti ottenere i risultati usando Update-GradioApiResult:</maml:para> <maml:para>$ApiEvent | Update-GradioApiResult</maml:para> <maml:para>Con questo cmdlet, puoi incapsulare un po' di più queste chiamate:</maml:para> <maml:para>$MySession = Get-GradioSession http://mydemo1.hf.space $MySession | New-GradioSessionApiProxyFunction</maml:para> <maml:para>Il comando precedente creerà una funzione chiamata Invoke-GradioApiGenerateimage. Quindi, puoi usarla in modo semplice per generare l'immagine:</maml:para> <maml:para>Invoke-GradioApiGenerateimage -Prompt "A car" -Steps 100 </maml:para> <maml:para>Per impostazione predefinita, il comando verrebbe eseguito e otterrebbe già gli eventi dei risultati, scrivendo nel pipeline in modo che tu possa integrarli con altri comandi. Anche connettere più spazi è molto semplice, vedi sotto sulla pipeline.</maml:para> <maml:para>NOMENCLATURA </maml:para> <maml:para> Il nome delle funzioni create segue il formato: <Prefix><NomeOp> <Prefix> è il valore del parametro -Prefix di questo cmdlet. <NomeOp> è il nome dell'operazione, mantenuto solo lettere e numeri</maml:para> <maml:para> Ad esempio, se l'operazione è /Op1 e il Prefisso INvoke-GradioApi, la seguente funzione verrà creata: Invoke-GradioApiOp1</maml:para> <maml:para></maml:para> <maml:para>PARAMETRI Le funzioni create contengono la logica necessaria per trasformare i parametri passati ed eseguire il cmdlet Invoke-GradioSessionApi. Vale a dire, lo stesso ritorno si applica come se si stesse invocando questo cmdlet direttamente. (Questo è, un evento verrà restituito e aggiunto alla lista degli eventi della sessione corrente).</maml:para> <maml:para> I parametri delle funzioni possono variare a seconda dell'endpoint dell'API, perché ogni endpoint ha un set diverso di parametri e tipi di dati. I parametri che sono file (o elenco di file) hanno un passaggio aggiuntivo di upload. Il file può essere referenziato localmente e il suo upload verrà fatto sul server. Se viene fornita un'URL o un oggetto FileData ricevuto da un altro comando, non verrà eseguito alcun upload aggiuntivo, verrà semplicemente generato un oggetto FileData corrispondente per l'invio tramite API.</maml:para> <maml:para> Oltre ai parametri dell'endpoint, esiste un set aggiuntivo di parametri che verrà sempre aggiunto alla funzione creata. Questi sono: - Manual Se utilizzato, fa sì che il cmdlet restituisca l'evento generato da INvoke-GradioSessionApi. In questo caso, dovrai ottenere manualmente i risultati usando Update-GradioSessionApiResult</maml:para> <maml:para> - ApiResultMap Mappa i risultati di altri comandi ai parametri. Vedi di più nella sezione PIPELINE.</maml:para> <maml:para> - DebugData Per scopi di debug da parte degli sviluppatori.</maml:para> <maml:para>UPLOAD I parametri che accettano file vengono trattati in modo speciale. Prima dell'invocazione dell'API, il cmdlet Send-GradioSessionFiles viene usato per caricare questi file sul rispettivo app gradio. Questo è un altro grande vantaggio dell'utilizzo di questo cmdlet, perché ciò è trasparente e l'utente non ha bisogno di gestire gli upload.</maml:para> <maml:para>PIPELINE </maml:para> <maml:para> Una delle funzionalità più potenti di powershell è la pipeline, dove è possibile collegare più comandi usando il pipe |. E questo cmdlet cerca anche di sfruttare al massimo questa funzionalità. Tutte le funzioni create possono essere collegate con il |. Facendo ciò, ogni evento generato dal cmdlet precedente viene passato al successivo. Considera due app gradio, App1 e App2. App1 ha l'endpoint Img, con un parametro chiamato Text, che genera immagini usando Diffusers, mostrando le parziali di ogni immagine man mano che vengono generate. App2 ha un endpoint Ascii, con un parametro chiamato Image, che trasforma un'immagine in una versione ascii in testo.</maml:para> <maml:para> Puoi collegare questi due comandi in modo molto semplice con la pipeline. Innanzitutto, crea le sessioni</maml:para> <maml:para> $App1 = New-GradioSession http://stable-diffusion $App2 = New-GradioSession http://ascii-generator</maml:para> <maml:para> Crea le funzioni $App1 | New-GradioSessionApiProxy -Prefix App # questo crea la funzione AppImg $App2 | New-GradioSessionApiProxy -Prefix App # questo crea la funzione AppAscii</maml:para> <maml:para> Genera l'immagine e connettila al generatore ascii:</maml:para> <maml:para> AppImg -Text "A car" | AppAscii -Map ImageInput=0 | %{ $ .data[0]; write-host $ .pipeline[0].data[0].url } </maml:para> <maml:para> Ora scomponiamo la sequenza precedente.</maml:para> <maml:para> Prima del primo pipe, abbiamo il comando che genera l'immagine: AppImg -Text "A car" Questa funzione sta chiamando l'endpoint /Img di App1. Questo endpoint produce un'uscita per ogni passo della generazione di immagini con la lib Diffusers di hugging face. In questo caso, ogni uscita sarà un'immagine (abbastanza confusa), fino all'ultima uscita che sarà l'immagine finale. Questo risultato si trova nella proproità data dell'oggetto del pipeline. È un array con i risultati.</maml:para> <maml:para> Subito dopo nel pipe, abbiamo il comando: AppAscii -Map ImageInput=0 Questo comando riceverà ogni oggetto generato dal comando AppImg, che nel caso sono le immagini parziali del processo di diffusione. A causa del fatto che i comandi possono generare un array di uscite, è necessario mappare esattamente quale dei risultati deve essere associato a quali parametri. Pertanto, usiamo il parametro -Map (-Map è un Alias, in realtà il nome corretto è ApiResultMap) La sintassi è semplice: NomeParam=DataIndex,NomeParam=DataIndex Nel comando precedente, stiamo dicendo: AppAscii, utilizza il primo valore della proproità data nel parametro ImageInput. Ad esempio, se AppImg restituisse 4 valori e l'immagine fosse nell'ultima posizione, dovresti usare ImageInput=3 (0 è la prima).</maml:para> <maml:para></maml:para> <maml:para> Infine, l'ultimo pipe solo evole il risultato di AppAscii, che ora si trova nell'oggetto del pipeline, $_, nella proproità .data (uguale al risultato di AppImg). E, per completare, l'oggetto del pipeline ha una proproità speciale, chiamata pipeline. Con essa, puoi accedere a tutti i risultati dei comandi generati. Ad esempio, $_.pipeline[0], contiene il risultato del primo comando (AppImg). </maml:para> <maml:para> Grazie a questo meccanismo, diventa molto più facile collegare diverse app Gradio in un'unica pipeline. Nota che questa sequenza funziona solo tra comandi generati da New-GradioSessionApiProxy. Eseguire il pipe di altri comandi non produrrà lo stesso effetto (dovrai usare qualcosa come For-EachObject e associare i parametri direttamente)</maml:para> <maml:para></maml:para> <maml:para>SESSIONI Quando la funzione viene creata, la sessione di origine viene cravata insieme alla funzione. Se la sessione viene rimossa, il cmdlet genererà un errore. In questo caso, devi creare la funzione invocando nuovamente questo cmdlet. Il seguente diagramma riassume le dipendenze coinvolte:</maml:para> <maml:para> New-GradioSessionApiProxyFunction(Prefix) ---> function <Prefix><OpName> ---> Send-GradioSessionFiles (quando houer files) ---> Invoke-GradioSessionApi | Update-GradioSessionApiResult</maml:para> <maml:para>Una volta che Invoke-GradioSessionApi viene eseguito alla fine, tutte le sue regole si applicano. Puoi usare Get-GradioSessionApiProxyFunction per ottenere un elenco di ciò che è stato craido e Remove-GradioSessionApiProxyFunction per rimuovere una o più funzioni create. Le funzioni vengono create con un modulo dinamico.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>New-GradioSessionApiProxyFunction</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ApiName</maml:name> <maml:description> <maml:para>Crea solo per questo endpoint specifico</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: @()</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Prefix</maml:name> <maml:description> <maml:para>Prefisso delle funzioni create</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: Invoke-GradioApi</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Session</maml:name> <maml:description> <maml:para>Sessione</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Force</maml:name> <maml:description> <maml:para>Forza la creazione della funzione, anche se ne esiste già una con lo stesso nome!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>New-OpenaiToolCallId</command:name> <command:verb>New</command:verb> <command:noun>OpenaiToolCallId</command:noun> <maml:description> <maml:para></maml:para> </maml:description> </command:details> <maml:description> <maml:para>Genera un nuovo id per la chiamata dello strumento openai!</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>New-OpenaiToolCallId</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>New-PowershaiChat</command:name> <command:verb>New</command:verb> <command:noun>PowershaiChat</command:noun> <maml:description> <maml:para>Crea un nuovo Powershai Chat.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>PowershaAI introduce il concetto di "chat", simili alle chat che vedi su OpenAI, o le "thread" dell'API di Assistants. Ogni chat creata ha il suo insieme di parametri, contesto e cronologia. Quando usi il cmdlet Send-PowershaiChat (alias ia), stai inviando messaggi al modello, e la cronologia di questa conversazione con il modello rimane nella chat creata qui da PowershAI. In altre parole, tutta la cronologia della tua conversazione con il modello è mantenuta qui nella tua sessione di PowershAI, e non lì nel modello o nell'API. Con ciò PowershAI mantiene il completo controllo di cosa inviare all'LLM e non dipende da meccanismi di diverse API di diversi provider per gestire la cronologia. </maml:para> <maml:para></maml:para> <maml:para>Ogni Chat ha un set di parametri che, una volta modificati, influenzano solo quella chat. Certi parametri di PowershAI sono globali, come ad esempio il provider utilizzato. Quando cambi il provider, la Chat inizia a utilizzare il nuovo provider, ma mantiene la stessa cronologia. Questo ti permette di conversare con diversi modelli, mantenendo la stessa cronologia. Oltre a questi parametri, ogni Chat ha una cronologia. La cronologia contiene tutte le conversazioni e le interazioni effettuate con i modelli, salvando le risposte restituite dalle API.</maml:para> <maml:para>Una Chat ha anche un contesto, che non è altro che tutte le messaggi inviate. Ogni volta che un nuovo messaggio viene inviato in una chat, Powershai aggiunge questo messaggio al contesto. Al ricevimento della risposta del modello, questa risposta viene aggiunta al contesto. Nel messaggio successivo inviato, tutta questa cronologia di messaggi del contesto viene inviata, facendo sì che il modello, indipendentemente dal provider, abbia la memoria della conversazione. Il fatto che il contesto sia mantenuto qui nella tua sessione di Powershell consente funzionalità come salvare la tua cronologia su disco, implementare un provider esclusivo per salvare la tua cronologia sul cloud, mantenere solo sul tuo PC, ecc. Future funzionalità possono trarre beneficio da questo.</maml:para> <maml:para>Tutti i comandi *-PowershaiChat ruotano attorno alla chat attiva o alla chat che specifichi esplicitamente nel parametro (generalmente con il nome -ChatId). La ChatAttiva è la chat in cui i messaggi verranno inviati, se non viene specificato ChatId (o se il comando non consente di specificare una chat esplicita). Esiste una chat speciale chiamata "default" che è la chat creata ogni volta che usi Send-PowershaiChat senza specificare una chat e se non esiste una chat attiva definita. Se chiudi la tua sessione di Powershell, tutta questa cronologia di Chat viene persa. Puoi salvare su disco, usando il comando Export-PowershaiSettings. Il contenuto viene salvato crittografato da una password che specifichi.</maml:para> <maml:para>Quando invii messaggi, PowershAI mantiene un meccanismo interno che pulisce il contesto della chat, per evitare di inviare più del necessario. Le dimensioni del contesto locale (qui nella tua sessione di Powershai, e non dell'LLM), sono controllate da un parametro (usa Get-PowershaiChatParameter per vedere l'elenco dei parametri)</maml:para> <maml:para>Nota che, a causa di questo modo di funzionare di Powershai, a seconda della quantità di informazioni inviate e restituite, più le configurazioni dei parametri, potresti far consumare molta memoria al tuo Powershell. Puoi pulire il contesto e la cronologia manualmente dalla tua chat usando Reset-PowershaiCurrentChat</maml:para> <maml:para>Scopri di più sul argomento about_Powershai_Chats,</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>New-PowershaiChat</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Id della chat. Se non specificato, verrà generato uno standard Alcuni modelli di id sono riservati per uso interno. Se li usi potresti causare instabilità in PowershAI. I seguenti valori sono riservati: default pwshai *</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>IfNotExists</maml:name> <maml:description> <maml:para>Crea solo se non esiste una chat con lo stesso nome</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Recreate</maml:name> <maml:description> <maml:para>Forza la ricreazione della chat se è già stata creata!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Tools</maml:name> <maml:description> <maml:para>Crea la chat e include questi strumenti!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: @()</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>New-PowershaiError</command:name> <command:verb>New</command:verb> <command:noun>PowershaiError</command:noun> <maml:description> <maml:para>Crea una nuova Exception personalizzata per PowershaAI</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Facilita la creazione di eccezioni personalizzate! Viene utilizzata internamente dai provider per creare eccezioni con proprietà e tipi che possono essere recuperati in seguito.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>New-PowershaiError</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Message</maml:name> <maml:description> <maml:para>Il messaggio dell'eccezione!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Props</maml:name> <maml:description> <maml:para>Proprietà personalizzate</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: @{}</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Type</maml:name> <maml:description> <maml:para>Tipo aggiuntivo!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Parent</maml:name> <maml:description> <maml:para>Eccezione padre!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>New-PowershaiParameters</command:name> <command:verb>New</command:verb> <command:noun>PowershaiParameters</command:noun> <maml:description> <maml:para>Crea un nuovo oggetto che rappresenta i parametri di un PowershaiChat</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Crea un oggetto predefinito contenente tutti i possibili parametri che possono essere utilizzati nella chat! L'utente può utilizzare un get-help New-PowershaiParameters per ottenere la documentazione dei parametri.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>New-PowershaiParameters</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>stream</maml:name> <maml:description> <maml:para>Quando true, usa la modalità stream, cioè, i messaggi vengono mostrati man mano che il modello li produce</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: True</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Json</maml:name> <maml:description> <maml:para>Abilita la modalità JSON. In questa modalità, il modello è costretto a restituire una risposta in JSON. Quando attivato, i messaggi generati tramite stream non vengono visualizzati man mano che vengono prodotti, e solo il risultato finale viene restituito.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Boolean</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>Nome del modello da utilizzare Se null, utilizza il modello definito con Set-AiDefaultModel</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: String</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxTokens</maml:name> <maml:description> <maml:para>Massimo di token da restituire dal modello</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Int32</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: 2048</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ShowFullSend</maml:name> <maml:description> <maml:para>Stampa il prompt intero che viene inviato al LLM</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Boolean</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ShowTokenStats</maml:name> <maml:description> <maml:para>Alla fine di ogni messaggio, mostra le statistiche di consumo, in token, restituite dall'API</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxInteractions</maml:name> <maml:description> <maml:para>Massimo di interazioni da effettuare in una sola volta Ogni volta che un messaggio viene inviato, il modello esegue 1 iterazione (invia il messaggio e riceve una risposta). Se il modello richiede una chiamata a funzione, la risposta generata verrà inviata di nuovo al modello. Questo conta come un'altra interazione. Questo parametro controlla il massimo di interazioni che possono esistere in ogni chiamata. Questo aiuta a prevenire loop infiniti imprevisti.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 7</maml:para> <maml:para>Default Value: 50</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxSeqErrors</maml:name> <maml:description> <maml:para>Massimo di errori in sequenza generati da Tool Calling. Quando si utilizza il tool calling, questo parametro limita quanti tools senza sequenza che hanno generato un errore possono essere chiamati. L'errore considerato è l'eccezione sollevata dallo script o comando configurato.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 8</maml:para> <maml:para>Default Value: 5</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxContextSize</maml:name> <maml:description> <maml:para>Dimensione massima del contesto, in caratteri In futuro, sarà in token Controlla la quantità di messaggi nel contesto attuale della chat. Quando questo numero supera, il Powershai pulisce automaticamente i messaggi più vecchi.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 9</maml:para> <maml:para>Default Value: 8192</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ContextFormatterFunc</maml:name> <maml:description> <maml:para>Funzione utilizzata per la formattazione degli oggetti passati tramite pipeline</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 10</maml:para> <maml:para>Default Value: ConvertTo-PowershaiContextOutString</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ContextFormatterParams</maml:name> <maml:description> <maml:para>Argomenti da passare alla ContextFormatterFunc</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 11</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ShowArgs</maml:name> <maml:description> <maml:para>Se true, mostra gli argomenti delle funzioni quando il Tool Calling è attivato per eseguire qualche funzione</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 12</maml:para> <maml:para>Default Value: True</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>PrintToolsResults</maml:name> <maml:description> <maml:para>Mostra i risultati degli strumenti quando vengono eseguiti dal PowershAI in risposta al tool calling del modello</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 13</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>SystemMessageFixed</maml:name> <maml:description> <maml:para>Messaggio di sistema che è garantito essere inviato sempre, indipendentemente dalla cronologia e dalla pulizia della chat!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 14</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>RawParams</maml:name> <maml:description> <maml:para>Parametri da passare direttamente all'API che invoca il modello. Il provider deve implementare il supporto per questo. Per utilizzarlo, è necessario conoscere i dettagli di implementazione del provider e come funziona la sua API!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 15</maml:para> <maml:para>Default Value: @{}</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ContextFormat</maml:name> <maml:description> <maml:para>Controlla il template utilizzato per iniettare i dati di contesto! Questo parametro è un blocco di script che deve restituire una stringa con il contesto da iniettare nel prompt! I parametri del blocco di script sono: FormattedObject - L'oggetto che rappresenta la chat attiva, già formattato con il Formatter configurato CmdParams - I parametri passati a Send-PowershaAIChat. È lo stesso oggetto restituito da GetMyParams Chat - La chat nella quale i dati vengono inviati. Se nullo, genererà un predefinito. Controlla il cmdlet Send-PowershaiChat per dettagli</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 16</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Remove-GradioSession</command:name> <command:verb>Remove</command:verb> <command:noun>GradioSession</command:noun> <maml:description> <maml:para>Rimuovi la sessione gradio</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Remove-GradioSession</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Name</maml:name> <maml:description> <maml:para>Specifica il nome della sessione. * ottiene tutte . ottiene la predefinita</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: *</maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Remove-GradioSessionApi</command:name> <command:verb>Remove</command:verb> <command:noun>GradioSessionApi</command:noun> <maml:description> <maml:para>Rimuovi le chiamate api dall'elenco interno della sessione</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo cmdlet aiuta a rimuovere gli eventi generati da Invoke-GradioSessionApi dall'elenco interno delle chiamate. Normalmente, vuoi rimuovere gli eventi che hai già elaborato, passando l'ID diretto. Ma, questo cmdlet ti consente di eseguire diversi tipi di rimozione, inclusi gli eventi non elaborati. Fai attenzione, perché, una volta che un evento viene rimosso dall'elenco, anche i dati associati a esso vengono rimossi. A meno che tu non abbia fatto una copia dell'evento (o dei dati risultanti) in un'altra variabile, non sarai più in grado di recuperare queste informazioni. La rimozione degli eventi è anche utile per aiutare a liberare la memoria consumata, che, a seconda della quantità di eventi e dati, può essere alta.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Remove-GradioSessionApi</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Target</maml:name> <maml:description> <maml:para>Specifica l'evento, o gli eventi, da rimuovere L'ID può anche essere uno di questi valori speciali: clean - Rimuove solo le chiamate che sono già state completate! all - Rimuove tutto, inclusi quelli non completati!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Force</maml:name> <maml:description> <maml:para>Per impostazione predefinita, vengono rimossi solo gli eventi passati con stato "completato"! Usa -Force per rimuovere indipendentemente dallo stato!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Elegible</maml:name> <maml:description> <maml:para>Non esegue alcuna rimozione, ma restituisce i candidati!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>session</maml:name> <maml:description> <maml:para>ID della sessione</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>WhatIf</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: wi</maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Confirm</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: cf</maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Remove-GradioSessionApiProxyFunction</command:name> <command:verb>Remove</command:verb> <command:noun>GradioSessionApiProxyFunction</command:noun> <maml:description> <maml:para>Rimuovi le funzioni create con New-GradioSessionApiProxy (usa Get-GradioSessionApiProxyFunction per recuperarle)!</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Remove-GradioSessionApiProxyFunction</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Function</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Remove-PowershaiChat</command:name> <command:verb>Remove</command:verb> <command:noun>PowershaiChat</command:noun> <maml:description> <maml:para>Rimuovi una chat e restituisci l'oggetto con tutta la cronologia e il contesto</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Remove-PowershaiChat</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Id della chat da rimuovere, o oggetto che rappresenta la chat!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: id</maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByPropertyName)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Remove-PowershaiChatTool</command:name> <command:verb>Remove</command:verb> <command:noun>PowershaiChatTool</command:noun> <maml:description> <maml:para>Rimuovi uno strumento definitivamente!</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Remove-PowershaiChatTool</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>tool</maml:name> <maml:description> <maml:para>Nome del comando, script, funzioni che è stato precedentemente aggiunto come strumento. Se è un file .ps1, tratta come uno script, a meno che -Force command non venga utilizzato. Puoi usare il risultato di Get-PowershaiChatTool tramite pipe per questo comando, che lo riconoscerà. Quando invii l'oggetto restituito, tutti gli altri parametri vengono ignorati.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ForceCommand</maml:name> <maml:description> <maml:para>Forza il trattamento dello strumento come un comando, quando è una stringa</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Chat da cui rimuovere</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>global</maml:name> <maml:description> <maml:para>Rimuovi dall'elenco globale, se lo strumento è stato aggiunto in precedenza come globale</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Reset-OpenaiBaseUrl</command:name> <command:verb>Reset</command:verb> <command:noun>OpenaiBaseUrl</command:noun> <maml:description> <maml:para>Reimposta l'URL di base di OpenAI.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Reset-OpenaiBaseUrl</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Reset-PowershaiChatToolsCache</command:name> <command:verb>Reset</command:verb> <command:noun>PowershaiChatToolsCache</command:noun> <maml:description> <maml:para>Limpa a cache das ferramentas de IA.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Il PowershAI mantiene una cache con le tools "compilate". Quando il PowershAI invia l'elenco delle tools al LLM, deve inviare insieme la descrizione delle tools, l'elenco dei parametri, la descrizione, ecc. Costruire questo elenco può richiedere un tempo significativo, poiché deve scorrere l'elenco delle tools, delle funzioni e per ciascuna, deve scorrere l'help (e l'help di ciascun parametro).</maml:para> <maml:para>Quando si aggiunge un cmdlet come Add-AiTool, non viene compilato in quel momento. Lo fa quando deve invocare il LLM, nella funzione Send-PowershaiChat. Se la cache non esiste, allora la compila in quel momento, il che può far sì che il primo invio al LLM impieghi qualche millisecondo o secondo in più del normale.</maml:para> <maml:para>Questo impatto è proporzionale al numero di funzioni e parametri inviati.</maml:para> <maml:para>Ogni volta che si utilizza Add-AiTool o Add-AiScriptTool, invalida la cache, in modo che alla successiva esecuzione venga generata. Questo consente di aggiungere molte funzioni in una sola volta, senza che vengano compilate ogni volta che si aggiunge una funzione.</maml:para> <maml:para>Tuttavia, se si modifica la funzione, la cache non viene ricalcolata. Pertanto, è necessario utilizzare questo cmdlet affinché la successiva esecuzione contenga i dati aggiornati delle proprie tools dopo modifiche di codice o di script.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Reset-PowershaiChatToolsCache</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Reset-PowershaiCurrentChat</command:name> <command:verb>Reset</command:verb> <command:noun>PowershaiCurrentChat</command:noun> <maml:description> <maml:para>Cancella la cronologia e il contesto della chat corrente.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Reset-PowershaiCurrentChat</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>WhatIf</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: wi</maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Confirm</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: cf</maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Send-GradioApi</command:name> <command:verb>Send</command:verb> <command:noun>GradioApi</command:noun> <maml:description> <maml:para></maml:para> </maml:description> </command:details> <maml:description> <maml:para>Invia dati a un Gradio e restituisce un oggetto che rappresenta l'evento! Passa questo oggetto agli altri cmdlet per ottenere i risultati.</maml:para> <maml:para>FUNZIONAMENTO DELL'API DI GRADIO </maml:para> <maml:para> Basato su: https://www.gradio.app/guides/querying-gradio-apps-with-curl Per capire meglio come utilizzare questo cmdlet, è importante comprendere come funziona l'API di Gradio. Quando invochiamo un endpoint dell'API, non restituisce immediatamente i dati. Questo è dovuto al semplice fatto che l'elaborazione è estesa, a causa della natura (IA e Machine Learning). Quindi, invece di restituire il risultato o attendere indefinitamente, Gradio restituisce un "Event Id". Con questo evento, possiamo ottenere periodicamente i risultati generati. Gradio genererà messaggi di eventi con i dati che sono stati generati. Dobbiamo passare l'EventId generato per ottenere i nuovi pezzi generati. Questi eventi vengono inviati tramite Server Side Events (SSE), e possono essere uno di questi: - hearbeat Ogni 15 secondi, Gradio invierà questo evento per mantenere attiva la connessione. Ecco perché, quando utilizzi il cmdlet Update-GradioApiResult, potrebbe richiedere un po' di tempo per restituire. - complete È l'ultimo messaggio inviato da Gradio quando i dati sono stati generati con successo! - error Inviato quando si è verificato un errore nell'elaborazione. - generating Viene generato quando l'API ha già dati disponibili, ma potrebbe arrivarne di più. Qui in PowershAI, abbiamo anche suddiviso questo in 3 parti: - Questo cmdlet (Send-GradioApi) effettua la richiesta iniziale a Gradio e restituisce un oggetto che rappresenta l'evento (lo chiamiamo un oggetto GradioApiEvent) - Questo oggetto risultante, di tipo GradioApiEvent, contiene tutto ciò che è necessario per interrogare l'evento e conserva anche i dati e gli errori ottenuti. - Infine, abbiamo il cmdlet Update-GradioApiResult, dove devi passare l'evento generato, e lui interrogherà l'API di Gradio e otterrà i nuovi dati. Controlla l'aiuto di questo cmdlet per ulteriori informazioni su come controllare questo meccanismo di ottenere i dati. Quindi, in un flusso normale, dovresti fare quanto segue: # Invochi l'endpoint di Gradio! $MioEvento = Send-GradioApi ... # Ottieni risultati finché non è terminato! # Controlla l'aiuto di questo cmdlet per imparare di più! $MioEvento | Update-GradioApiResult Oggetto GradioApiEvent</maml:para> <maml:para> L'oggetto GradioApiEvent risultante da questo cmdlet contiene tutto ciò che è necessario affinché PowershAI controlli il meccanismo e ottenga i dati. È importante che tu conosca la sua struttura per sapere come raccogliere i dati generati dall'API. Proprietà: - Status Indica lo stato dell'evento. Quando questo stato è "complete", significa che l'API ha già terminato l'elaborazione e tutti i dati possibili sono stati generati. Finché è diverso da questo, devi invocare Update-GradioApiResult affinché verifichi lo stato e aggiorni le informazioni. - QueryUrl Valore interno che contiene l'endpoint esatto per la consultazione dei risultati - data Un array contenente tutti i dati di risposta generati. Ogni volta che invochi Update-GradioApiResult, se ci sono dati, li aggiungerà a questo array. - events Elenco di eventi che sono stati generati dal server. - error Se ci sono stati errori nella risposta, questo campo conterrà un oggetto, stringa, ecc., che descrive ulteriori dettagli. - LastQueryStatus Indica lo stato dell'ultima consultazione all'API. Se "normal", indica che l'API è stata interrogata e ha restituito fino alla fine normalmente. Se "HeartBeatExpired", indica che la consultazione è stata interrotta a causa del timeout di heartbeat configurato dall'utente nel cmdlet Update-GradioApiResult - req Dati della richiesta effettuata!</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Send-GradioApi</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>AppUrl</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ApiName</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Params</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>SessionHash</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>EventId</maml:name> <maml:description> <maml:para>Se fornito, non chiama l'API, ma crea l'oggetto e utilizza questo valore come se fosse il ritorno</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>token</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Send-GradioFile</command:name> <command:verb>Send</command:verb> <command:noun>GradioFile</command:noun> <maml:description> <maml:para>Carica uno o più file. Restituisce un oggetto nello stesso formato di gradio FileData(https://www.gradio.app/docs/gradio/filedata). Se vuoi restituire solo il percorso del file sul server, usa il parametro -Raw. Grazie https://www.freddyboulton.com/blog/gradio-curl e https://www.gradio.app/guides/querying-gradio-apps-with-curl</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Send-GradioFile</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>AppUrl</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Files</maml:name> <maml:description> <maml:para>Lista di file (percorsi o FileInfo)</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Raw</maml:name> <maml:description> <maml:para>Restituisce il risultato diretto dal server!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Send-GradioSessionFiles</command:name> <command:verb>Send</command:verb> <command:noun>GradioSessionFiles</command:noun> <maml:description> <maml:para>Carica i file in una sessione di Gradio! Restituisce un oggetto FileData per il file caricato e salva internamente il riferimento.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Send-GradioSessionFiles</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>files</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Session</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Send-PowershaiChat</command:name> <command:verb>Send</command:verb> <command:noun>PowershaiChat</command:noun> <maml:description> <maml:para>Invia un messaggio in una chat di Powershai</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo cmdlet consente di inviare un nuovo messaggio al LLM del provider attuale. Per impostazione predefinita, invia nella chat attiva. Puoi sovrascrivere la chat utilizzando il parametro -Chat. Se non c'è una chat attiva, utilizzerà il default. Diversi parametri della chat influenzano come questo comando. Vedi il comando Get-PowershaiChatParameter per ulteriori informazioni sui parametri della chat. Oltre ai parametri della chat, i parametri del comando stesso possono sovrascrivere il comportamento. Per ulteriori dettagli, consulta la documentazione di ciascun parametro di questo cmdlet usando get-help. Per semplicità e per mantenere la linea di comando pulita, consentendo all'utente di concentrarsi di più sul prompt e sui dati, sono disponibili alcuni alias. Questi alias possono attivare determinati parametri. Sono essi: ia|ai Abbreviazione di "Intelligenza Artificiale" in italiano. Questo è un alias semplice e non modifica alcun parametro. Aiuta a ridurre notevolmente la linea di comando.</maml:para> <maml:para> iat|ait Il stesso di Send-PowershaAIChat -Temporary</maml:para> <maml:para> io|ao Il stesso di Send-PowershaAIChat -Object</maml:para> <maml:para> iam|aim Il stesso di Send-PowershaiChat -Screenshot </maml:para> <maml:para>L'utente può creare i propri alias. Ad esempio: Set-Alias ki ia # Definisce l'alias per il tedesco! Set-Alias kit iat # Definisce l'alias kit per iat, facendo comportare come iat (chat temporanea) quando si usa kit!</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Send-PowershaiChat</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>prompt</maml:name> <maml:description> <maml:para>il prompt da inviare al modello</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>SystemMessages</maml:name> <maml:description> <maml:para>Messaggio di sistema da includere</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: @()</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>context</maml:name> <maml:description> <maml:para>Il contesto Questo parametro è da usare preferibilmente tramite pipeline. Farà in modo che il comando metta i dati in tag <contexto></contexto> e li inietterà insieme al prompt.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ForEach</maml:name> <maml:description> <maml:para>Forza il cmdlet ad eseguire per ogni oggetto della pipeline Per impostazione predefinita, accumula tutti gli oggetti in un array, converte l'array in una stringa e invia tutto in una sola volta al LLM.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Json</maml:name> <maml:description> <maml:para>Abilita la modalità json in questa modalità i risultati restituiti saranno sempre un JSON. Il modello attuale deve supportare!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Object</maml:name> <maml:description> <maml:para>Modalità Oggetto! in questa modalità la modalità JSON sarà attivata automaticamente! Il comando non scriverà nulla sullo schermo e restituirà i risultati come un oggetto! Che saranno rimandati nella pipeline!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>PrintContext</maml:name> <maml:description> <maml:para>Mostra i dati di contesto inviati al LLM prima della risposta! È utile per debuggare cosa viene iniettato come dati nel prompt.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Forget</maml:name> <maml:description> <maml:para>Non inviare le conversazioni precedenti (la cronologia del contesto), ma includere il prompt e la risposta nel contesto storico.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Snub</maml:name> <maml:description> <maml:para>Ignora la risposta del LLM e non include il prompt nel contesto storico</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Temporary</maml:name> <maml:description> <maml:para>Non invia la cronologia e non include la risposta e il prompt. È lo stesso di passare -Forget e -Snub insieme.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>DisableTools</maml:name> <maml:description> <maml:para>Disabilita la chiamata di funzione per questa esecuzione solo!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: NoCalls,NoTools,nt</maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>FormatterFunc</maml:name> <maml:description> <maml:para>Modifica il formatter del contesto per questo Leggi di più in Format-PowershaiContext</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>FormatterParams</maml:name> <maml:description> <maml:para>Parametri del formatter del contesto modificato.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>PassThru</maml:name> <maml:description> <maml:para>Restituisce i messaggi indietro nella pipeline, senza scrivere direttamente sullo schermo! Questa opzione presume che l'utente sarà responsabile di dare la corretta destinazione del messaggio! L'oggetto passato alla pipeline avrà le seguenti proprietà: text - Il testo (o estratto) del testo restituito dal modello formatted - Il testo formattato, inclusi il prompt, come se fosse scritto direttamente sullo schermo (senza colori) event - L'evento. Indica l'evento che ha originato. Sono gli stessi eventi documentati in Invoke-AiChatTools interaction - L'oggetto interaction generato da Invoke-AiChatTools</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Lines</maml:name> <maml:description> <maml:para>Restituisce un array di righe Se la modalità stream è attivata, restituirà una riga alla volta!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatParamsOverride</maml:name> <maml:description> <maml:para>Sovrascrivere i parametri della chat! Specifica ogni opzione in hash table!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: @{}</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>RawParams</maml:name> <maml:description> <maml:para>Specifica direttamente il valore del parametro chat RawParams! Se specificato anche in ChatParamOverride, viene effettuata una fusione, dando priorità ai parametri specificati qui. Il RawParams è un parametro chat che definisce parametri che saranno inviati direttamente all'API del modello! Questi parametri sovrascriveranno i valori predefiniti calcolati da powershai! Con ciò, l'utente ha il pieno controllo sui parametri, ma deve conoscere ogni provider! Inoltre, ogni provider è responsabile di fornire questa implementazione e utilizzare questi parametri nella propria API.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: @{}</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Screenshot</maml:name> <maml:description> <maml:para>Cattura uno screenshot dello schermo che si trova dietro la finestra di powershell e lo invia insieme al prompt. Nota che il modello attuale deve supportare immagini (Vision Language Models).</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: ss</maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-AiDefaultModel</command:name> <command:verb>Set</command:verb> <command:noun>AiDefaultModel</command:noun> <maml:description> <maml:para>Configura il modello LLM predefinito del provider corrente</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Gli utenti possono configurare il modello LLM predefinito, che verrà utilizzato quando è necessario un LLM. Comandi come Send-PowershaAIChat, Get-AiChat, si aspettano un modello, e se non è specificato, usa quello definito con questo comando.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Set-AiDefaultModel</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>model</maml:name> <maml:description> <maml:para>ID del modello, come restituito da Get-AiModels Puoi usare la tab per completare la riga di comando.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Force</maml:name> <maml:description> <maml:para>Forza l'impostazione del modello, anche se non viene restituito da Get-AiModels</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-AiProvider</command:name> <command:verb>Set</command:verb> <command:noun>AiProvider</command:noun> <maml:description> <maml:para>Cambia il provider corrente</maml:para> </maml:description> </command:details> <maml:description> <maml:para>I provider sono script che implementano l'accesso alle loro rispettive API. Ogni provider ha il suo modo di invocare le API, il formato dei dati, lo schema della risposta, ecc. Cambiando il provider, si influenzano alcuni comandi che operano sul provider corrente, come `Get-AiChat`, `Get-AiModels`, o le Chat, come Send-PowershaAIChat. Per maggiori dettagli sui provider consultare il topic about_Powershai_Providers</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Set-AiProvider</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>provider</maml:name> <maml:description> <maml:para>nome del provider</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-ClaudeToken</command:name> <command:verb>Set</command:verb> <command:noun>ClaudeToken</command:noun> <maml:description> <maml:para>Imposta il token Claude [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Set-ClaudeToken</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-GoogleApiKey</command:name> <command:verb>Set</command:verb> <command:noun>GoogleApiKey</command:noun> <maml:description> <maml:para>Definisci una chiave API (o Token) dell'API di Google.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Set-GoogleApiKey</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-GradioSession</command:name> <command:verb>Set</command:verb> <command:noun>GradioSession</command:noun> <maml:description> <maml:para>Definisci alcune opzioni della sessione.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Set-GradioSession</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Session</maml:name> <maml:description> <maml:para>Sessione Gradio</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Default</maml:name> <maml:description> <maml:para>Definisci la sessione come predefinita</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxCalls</maml:name> <maml:description> <maml:para>Configura il numero massimo di chiamate. Vedi ulteriori informazioni in Invoke-GradioSessionApi</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxCallsPolicy</maml:name> <maml:description> <maml:para>Configura la policy del numero massimo di chiamate. Vedi ulteriori informazioni in Invoke-GradioSessionApi</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-HuggingFaceToken</command:name> <command:verb>Set</command:verb> <command:noun>HuggingFaceToken</command:noun> <maml:description> <maml:para>Imposta il token di Hugging Face</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Set-HuggingFaceToken</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-MaritalkToken</command:name> <command:verb>Set</command:verb> <command:noun>MaritalkToken</command:noun> <maml:description> <maml:para>Imposta il token Maritalk. [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Set-MaritalkToken</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-OllamaUrl</command:name> <command:verb>Set</command:verb> <command:noun>OllamaUrl</command:noun> <maml:description> <maml:para>Imposta l'URL di Ollama.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Set-OllamaUrl</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>url</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-OpenaiBaseUrl</command:name> <command:verb>Set</command:verb> <command:noun>OpenaiBaseUrl</command:noun> <maml:description> <maml:para>Set-OpenaiBaseUrl [[-url] <Object>] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Set-OpenaiBaseUrl</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>url</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-OpenaiToken</command:name> <command:verb>Set</command:verb> <command:noun>OpenaiToken</command:noun> <maml:description> <maml:para>Imposta il token OpenAI.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Set-OpenaiToken</maml:name> </command:syntaxItem> </command:syntax> <command:parameters /> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-PowershaiActiveChat</command:name> <command:verb>Set</command:verb> <command:noun>PowershaiActiveChat</command:noun> <maml:description> <maml:para>Cambia la chat attiva</maml:para> </maml:description> </command:details> <maml:description> <maml:para>La chat attiva è la chat predefinita a cui vengono inviati i comandi di Powershai Chat. Se esiste solo 1 chat, viene considerata attiva per impostazione predefinita.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Set-PowershaiActiveChat</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-PowershaiChatContextFormatter</command:name> <command:verb>Set</command:verb> <command:noun>PowershaiChatContextFormatter</command:noun> <maml:description> <maml:para>Definisce quale sarà la funzione usata per formattare gli oggetti passati al parametro Send-PowershaiChat -Context</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Quando si invoca Send-PowershaiChat in un pipe, o passando direttamente il parametro -Context, questo inietterà tale oggetto nel prompt del LLM. Prima di iniettare, deve convertire questo oggetto in una stringa. Questa conversione è chiamata "Context Formatter" qui nel Powershai. Il Context Formatter è una funzione che prenderà ogni oggetto passato e lo convertirà in una stringa per essere iniettata nel prompt. La funzione utilizzata deve ricevere come primo parametro l'oggetto da convertire. Gli altri parametri sono a discrezione. I loro valori possono essere specificati usando il parametro -Params di questa funzione!</maml:para> <maml:para>Il powershai mette a disposizione context formatter nativi. Utilizzare Get-Command ConvertTo-PowershaiContext* o Get-PowershaiContextFormatters per ottenere l'elenco!</maml:para> <maml:para>Una volta che i context formatter nativi sono solo funzioni powershell, puoi utilizzare Get-Help Nome, per ottenere maggiori dettagli.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Set-PowershaiChatContextFormatter</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Func</maml:name> <maml:description> <maml:para>Nome della funzione powershell Utilizzare il comando Get-PowershaiContextFormatters per vedere l'elenco</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: Str</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Params</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-PowershaiChatParameter</command:name> <command:verb>Set</command:verb> <command:noun>PowershaiChatParameter</command:noun> <maml:description> <maml:para>Aggiorna il valore di un parametro della chat di Powershai Chat.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Aggiorna il valore di un parametro di una chat di Powershai Chat. Se il parametro non esiste, viene restituito un errore.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Set-PowershaiChatParameter</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>parameter</maml:name> <maml:description> <maml:para>Nome del parametro</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>value</maml:name> <maml:description> <maml:para>Valore del parametro</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Chat che desideri aggiornare. Di default aggiorna la chat attiva</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Force</maml:name> <maml:description> <maml:para>Forza l'aggiornamento, anche se il parametro non esiste nell'elenco dei parametri</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Set-PowershaiChatTool</command:name> <command:verb>Set</command:verb> <command:noun>PowershaiChatTool</command:noun> <maml:description> <maml:para>Disabilita uno strumento (ma non lo rimuove). Uno strumento disabilitato non viene inviato all'LLM.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Set-PowershaiChatTool</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>tool</maml:name> <maml:description> <maml:para>Nome dello strumento (stesso di Add-PowershaiChatTool) o tramite pipe il risultato di Get-PowershaiChatTool</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Enable</maml:name> <maml:description> <maml:para>abilita lo strumento.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: Enable</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Disable</maml:name> <maml:description> <maml:para>disabilita lo strumento.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: Disable</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ForceCommand</maml:name> <maml:description> <maml:para>Se impostato, e lo strumento è un nome, lo forza a essere considerato come uno script!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ChatId</maml:name> <maml:description> <maml:para>Chat in cui si trova lo strumento</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Global</maml:name> <maml:description> <maml:para>Cerca lo strumento nell'elenco globale degli strumenti</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Start-HttpRequest</command:name> <command:verb>Start</command:verb> <command:noun>HttpRequest</command:noun> <maml:description> <maml:para>Start-HttpRequest [[-url] <Object>] [[-data] <Object>] [[-method] <Object>] [[-contentType] <Object>] [[-Encoding] <Object>] [[-headers] <Object>] [[-MaxConnections] <Object>] [<CommonParameters>]</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Start-HttpRequest</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Encoding</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 4</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxConnections</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 6</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>contentType</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>data</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>headers</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 5</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>method</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>url</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 0</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters:</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Start-HuggingFaceSpace</command:name> <command:verb>Start</command:verb> <command:noun>HuggingFaceSpace</command:noun> <maml:description> <maml:para>Avvia uno Space di Hugging Face, se è in stato di sospensione.</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Start-HuggingFaceSpace</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>space</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Update-GradioApiResult</command:name> <command:verb>Update</command:verb> <command:noun>GradioApiResult</command:noun> <maml:description> <maml:para></maml:para> </maml:description> </command:details> <maml:description> <maml:para>Aggiorna un evento restituito da Send-GradioApi con nuovi risultati dal server e, per impostazione predefinita, restituisce gli evenots nella pipeline.</maml:para> <maml:para>I risultati delle Api di Gradio non vengono generati istantaneamente, come avviene nella maggior parte dei servizi HTTP REST. L'help del comando Send-GradioApi spiega in dettaglio come funziona il processo. Questo comando deve essere utilizzato per aggiornare l'oggetto GradioApiEvent, restituito da Send-GradioApi. Questo oggetto rappresenta la risposta di ogni chiamata che si fa all'API, contiene tutto ciò che è necessario per consultare il risultato, inclusi i dati e la cronologia.</maml:para> <maml:para>In pratica, questo cmdlet funziona invocando l'endpoint di consulta dello stato dell'invocazione Api. I parametri necessari per la consulta sono disponibili nello stesso oggetto passato nel parametro -ApiEvent (che viene creato e restituito dal cmdlet Send-GradioApi)</maml:para> <maml:para>Ogni volta che questo cmdlet viene eseguito, comunica tramite una connessione HTTP persistente con il server e attende gli eventi. Mentre il server invia i dati, aggiorna l'oggetto passato nel parametro -ApiEvent e, per impostazione predefinita, scrive l'evento restituito nella pipeline.</maml:para> <maml:para>L'evento restituito è un oggetto di tipo GradioApiEventResult e rappresenta un evento generato dalla risposta dell'esecuzione dell'API. Se il parametro -History è specificato, tutti gli eventi generati rimangono nella proprietà events dell'oggetto fornito in -ApiEvent, così come i dati restituiti.</maml:para> <maml:para>In pratica, gli eventi generati possono inviare un hearbeat o dei dati.</maml:para> <maml:para>OGGETTO GradioApiEventResult num = numero sequenziale dell'evento. inizia da 1. ts = data in cui l'evento è stato creato (data locale, non del server). event = nome dell'evento data = dati restituiti in questo evento</maml:para> <maml:para>DATI (DATA)</maml:para> <maml:para> Ottenere i dati di Gradio, è fondamentalmente leggere gli eventi restituiti da questo cmdlet e guardare nella proprietà data del GradioApiEventResult Generalmente l'interfaccia di Gradio sovrascrive il campo con l'ultimo evento ricevuto. Se -History viene utilizzato, oltre a scrivere nella pipeline, il cmdle memorizza i dati nel campo data e quindi avrai accesso alla cronologia completa di ciò che è stato generato dal server. Si noti che ciò può causare un consumo di memoria aggiuntivo, se vengono restituiti molti dati.</maml:para> <maml:para> Esiste un caso "problematico" noto: eventualmente, Gradio potrebbe emettere gli ultimi 2 eventi con lo stesso dato (1 evento avrà il nome "generating" e l'ultimo sarà complete). Non abbiamo ancora una soluzione per separare questo in modo sicuro, e quindi l'utente deve decidere il modo migliore per procedere. Se si utilizza sempre l'ultimo evento ricevuto, questo non è un problema. Se è necessario utilizzare tutti gli eventi man mano che vengono generati, è necessario gestire questi casi. Un esempio semplice sarebbe acquistare il contenuto, se fossero uguali, non ripeterlo. Ma potrebbero esserci scenari in cui 2 eventi con lo stesso contenuto, comunque, siano eventi logicamente diversi.</maml:para> <maml:para></maml:para> <maml:para></maml:para> <maml:para>HEARTBEAT </maml:para> <maml:para> Uno degli eventi generati dall'API di Gradio sono gli Heartbeats. Ogni 15 secondi, Gradio invia un evento di tipo "HeartBeat", solo per mantenere la connessione attiva. Questo fa sì che il cmdlet "blocchi", perché, poiché la connessione HTTP è attiva, continua ad aspettarsi una risposta (che sarà dati, errori o il hearbeat).</maml:para> <maml:para> Se non c'è un meccanismo di controllo di questo, il cmdlet continuerebbe ad eseguire indefinitamente, senza possibilità di annullare neanche con CTRL + C. Per risolvere questo problema, questo cmdlet mette a disposizione il parametro MaxHeartBeats. Questo parametro indica quanti eventi di Hearbeat consecutivi saranno tollerati prima che il cmdlet smetta di cercare di consultare l'API. Ad esempio, si considerino questi due scenari di eventi inviati dal server:</maml:para> <maml:para> scenario 1: generating heartbeat generating heartbeat generating complete</maml:para> <maml:para> scenario 2: generating generating heartbeat heartbeat heartbeat complete</maml:para> <maml:para> Considerando il valore predefinito, 2, nello scenario 1, il cmdlet non terminerebbe mai prima di complete, poiché non ci sono mai stati 2 hearbeat consecutivi.</maml:para> <maml:para> Nello scenario 2, dopo aver ricevuto 2 eventi di dati (generating), al quarto evento (hearbeat), si arresterebbe, perché sono stati inviati 2 hearbeat consecutivi. Diciamo che l'heartbeat è scaduto, in questo caso. In questo caso, dovresti invocare nuovamente Update-GradioApiResult per ottenere il resto.</maml:para> <maml:para> Ogni volta che il comando termina a causa della scadenza dell'heartbeat, aggiornerà il valore della proprietà LastQueryStatus a HeartBeatExpired. Con ciò, puoi controllare e gestire correttamente quando devi richiamare di nuovo</maml:para> <maml:para></maml:para> <maml:para>STREAM A causa del fatto che l'Api di Gradio risponde già utilizzando SSE (Server Side Events), è possibile utilizzare un effetto simile allo "streaming" di molte Api. Questo cmdlet, Update-GradioApiResult, elabora già gli eventi del server utilizzando SSE. Inoltre, se desideri anche eseguire un'elaborazione non appena l'evento diventa disponibile, puoi utilizzare il parametro -Script e specificare uno scriptblock, funzioni, ecc. che verrà invocato non appena l'evento viene ricevuto. Combinando con il parametro -MaxHeartBeats, puoi creare una chiamata che aggiorna qualcosa in tempo reale. Ad esempio, se è una risposta da un chatbot, puoi scrivere immediatamente sullo schermo.</maml:para> <maml:para> Si noti che questo parametro viene chiamato in sequenza con il codice che verifica (cioè, stessa Thread). Pertanto, gli script che richiedono molto tempo possono ostacolare il rilevamento di nuovi eventi e, di conseguenza, la consegna dei dati.</maml:para> <maml:para>.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Update-GradioApiResult</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>ApiEvent</maml:name> <maml:description> <maml:para>Risultato di Send-GradioApi</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Script</maml:name> <maml:description> <maml:para>script che verrà invocato in ogni evento generato! Riceve una hashtable con le seguenti keys: event - contiene l'evento generato. event.event è il nome doe vento. event.data sono i dati restituiti.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxHeartBeats</maml:name> <maml:description> <maml:para>Max heartbeats consecutivi fino allo stop! Fa sì che il comando aspetti solo questo numero di hearbeat consecutivi dal server. Quando il server invia questa quantità, il cmdlet termina e imposta LastQueryStatus dell'evento su HeartBeatExpired</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>NoOutput</maml:name> <maml:description> <maml:para>Non scrive il risultato nell'output del cmdlet</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>History</maml:name> <maml:description> <maml:para>Memorizza la cronologia degli eventi e dei dati nell'oggetto ApiEvent Si noti che ciò farà consumare più memoria di powershell!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Update-GradioSessionApiResult</command:name> <command:verb>Update</command:verb> <command:noun>GradioSessionApiResult</command:noun> <maml:description> <maml:para>Aggiorna il ritorno di una chiamata generata come Invoke-GradioSessionApi</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Questo cmdlet segue lo stesso principio dei suoi equivalenti in Send-GradioApi e Update-GradioApiResult. Tuttavia, funziona solo per gli eventi generati in una sessione specifica. Restituisce l'evento stesso in modo che possa essere utilizzato con altri cmdlet che dipendono dall'evento aggiornato!</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Update-GradioSessionApiResult</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Id</maml:name> <maml:description> <maml:para>Id dell'evento, restituito da Invoke-GradioSessionApi o l'oggetto stesso restituito.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>NoOutput</maml:name> <maml:description> <maml:para>Non restituire il risultato all'output!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>MaxHeartBeats</maml:name> <maml:description> <maml:para>Max heartbeat consecutivi.</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 2</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>session</maml:name> <maml:description> <maml:para>Id della sessione</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 3</maml:para> <maml:para>Default Value: .</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>History</maml:name> <maml:description> <maml:para>Aggiunge gli eventi nella cronologia degli eventi dell'oggetto GradioApiEvent specificato in -Id</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Wait-HuggingFaceSpace</command:name> <command:verb>Wait</command:verb> <command:noun>HuggingFaceSpace</command:noun> <maml:description> <maml:para>Attende all'avvio dello spazio. Restituisce $true se avviato correttamente o $false se il timeout è scaduto!</maml:para> </maml:description> </command:details> <maml:description /> <command:syntax> <command:syntaxItem> <maml:name>Wait-HuggingFaceSpace</maml:name> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>Space</maml:name> <maml:description> <maml:para>Filtra per uno spazio specifico</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: 1</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: true (ByValue)</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>timeout</maml:name> <maml:description> <maml:para>Quanti secondi, al massimo, attendere. Se null, attende indefinitamente!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: </maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>SleepTime</maml:name> <maml:description> <maml:para>Tempo di attesa fino al prossimo controllo, in ms</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: 5000</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>NoStatus</maml:name> <maml:description> <maml:para>non visualizza lo stato di avanzamento...</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none"> <maml:name>NoStart</maml:name> <maml:description> <maml:para>Non avvia, ma attende!</maml:para> <maml:para></maml:para> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: SwitchParameter</maml:para> <maml:para>Aliases: </maml:para> <maml:para>Accepted Values: </maml:para> <maml:para>Required: false</maml:para> <maml:para>Position: named</maml:para> <maml:para>Default Value: False</maml:para> <maml:para>Accept pipeline input: false</maml:para> <maml:para>Accept wildcard characters: false</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false"></command:parameterValue> <dev:type> <maml:name></maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <maml:alertSet> <maml:alert /> </maml:alertSet> <command:examples /> <command:relatedLinks /> </command:command> </helpItems> |