pt-BR/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>Adiciona funcoes, scripts, executáveis como uma tool invocável pelo LLM no chat atual (ou default para todos).</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Adiciona funcoes na sessao atual para a lista de Tool caling permitidos! Quando um comando é adicionado, ele é enviado ao modelo atual como uma opcao para Tool Calling. O help dsponivel da função será usado para descrevê-la, iuncluindo os parâmetros. Com isso, você pode, em runtime, adicionar novas habilidades na IA que poderão ser invocadas pelo LLM e executadas pelo PowershAI. AO adicionar scritps, todas as funcoes dentro do script são adicionadas de uma só vez.</maml:para> <maml:para>Para mais informações sobre tools consule o topico about_Powershai_Chats</maml:para> <maml:para>MUITO IMPORTANTE: NUNCA ADICIONEI COMANDOS QUE VOCÊ N O CONHEÇA OU QUE POSSAM COMPROMETER SEU COMPUTADOR. O POWERSHELL VAI EXECUTÁ-LO A PEDIDO DO LLM E COM OS PARÂMETROS QUE O LLM INVOCAR, E COM AS CREDENCIAIS DO USUÁRIO ATUAL. SE VOCÊ ESTIVER LOGADO COM UMA CONTA PRIVILEGIADA, COMO O ADMINISTRADOR, NOTE QUE VOCÊ PODERÁ EXECUTAR QUALQUER AÇ O A PEDIDO DE UM SERVER REMOTO (O 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 do comando, caminho do script ou executável Pode ser um array de string com estes elementos misturados. Quando nome que termina com .ps1 é passado, é tratado como um script (isto é, será carregado as funcoes do script) Caso queria tratar com um comando (executar o script), informe o parâmetor -Command, para forçar ser tratado como um 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>Descrição para esse tool a ser passada ao LLM. O comando vai usar o help e enviar, também o conteúdo descrito Se este parâmetro for adicionado, ele é enviado junto com o help.</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>Força tratar como command. Útil quando você quer que um script seja executado como comando. ùtil somente quando você passa um nome ambíguo de arquivo, que coincide como nome de algum 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 em qual criar a tool</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>Cria a tool globalmente, isto é, será disponível em todos os chats</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>Apaga elementos de um chat!</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Apaga elementos específico de um chat. Útil apra liberar recursos, ou tirar o vício do llm devido ao histórico.</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>Apaga todo o histórico</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>Apaga o contexto Id do chat. Padrão: ativo.</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>Close Http opended with 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>Conecta com o Gradio de um Hugging Face Space!</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>Space no qualc onectar!</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>Force connect</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>Convert-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 OpenAI messages para um array de Content message 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: (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>ConvertTo-OpenaiMessage</command:name> <command:verb>ConvertTo</command:verb> <command:noun>OpenaiMessage</command:noun> <maml:description> <maml:para>Converte array de string e objetos para um formato de mensagens padrão da OpenAI!</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Voce pode passar uma array misto onde cada item pode ser uma string ou um objeto. Se for uma string, pode iniciar com o prefixo s, u ou a, que significa, respestivamente, system, user ou assistant. Se for um objeto, ele adicionado diretamente ao array resultanete.</maml:para> <maml:para>Veja: 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 "Isso é um texto",@{role:"assistant";content="Resposta assistant"}, "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 o contexto para JSON usando 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 o objeto para um 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>Objeto que será injetado no contexto</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>Parâmetros do 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 o contexto para JSON usando 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>Objeto a ser injetado no contexto</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 o objeto para um 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>Objeto que será injetado no contexto</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>Habilita o explain screen!</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Explain Screen é uma feature que permite obter prints de uma área da tela e enviar ao LLM que suporta vision! É um recurso que está sendo testado ainda, e por isso, você deve habilita!</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>Exporta as configurações da sessão atual para um arquivo, criptografado por uma senha</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este cmdlet é útil para salvar configurações, como os Tokens, de maneira segura. Ele solicia uma senha e usa ela para criar um hash e criptografar os dados de configuração da sessão em AES256. As configurações exportadas são todas aquelas definidas na variável $POWERSHAI_SETTINGS. Essa variável é uma hashtable contendo todos os dados configurados pelos providers, o que inclui os tokens. Por padrão, os chats não são exportados devido a quantidade de dados envolvidos, o que pode deixar o arquivo muito grande!</maml:para> <maml:para>O arquivo exportado é salvo em um diretório criado automaticamente, por padrão, na home do usuário ($HOME). Os objetos são exportados via Serialization, que é o mesmo método usado por Export-CliXml. Os dados são exportados em um formato próprio que pode ser importado apenas com Import-PowershaiSettings e informando a mesma senha. Uma vez que o PowershAI não faz um export automático, é recomendo invocar esse comando comando sempre que houver alteração de configuração, como a inclusão de novos tokens. O diretório de export pode ser qualquer caminho válido, incluindo cloud drives como OneDrive,Dropbox, etc. Este comando foi criado com o intuito de ser interativo, isto é, precisa da entrada do usuário em teclado.</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>Diretório de export Por Padrão, é um diretorio chamado .powershai no profile do usuário, mas pode especificar a variável de ambiente POWERSHAI_EXPORT_DIR para alterar.</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 especificado, inclui os chats no export Todos os chats serão exportados</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>------------- Exportando as configurações padrões! -------------</maml:title> <dev:code>Export-PowershaiSettings</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------- Exporta tudo, incluindo os chats! --------------</maml:title> <dev:code>Export-PowershaiSettings -Chat</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> <command:example> <maml:title>------------------ Exportando para o 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>Formato um objeto para ser injetado no contexto de uma mensagem envianda em um Powershai Chat</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Dado que LLM processam apenas strings, os objetos passados no contexto precisam ser convertidos para um formato em string, antes de serem injetados no prompt. E, como existem várias reprsentações de um objeto em string, o Powershai permite que o usuário tenha total controle sobre isso. Sempre que um objeto precisar ser injado no prompt, quando invocado com Send-PowershaAIChat, via ppipeline ou parâmetro Contexto, este cmdlet será invocado. Este cmdlet é responsavel por transformar este objeto em string, independente do objeto, seja array, hashtable, customizado, etc. Ele faz isso invocando a função de formatter configurada usando Set-PowershaiChatContextFormatter NO geral, você não precisa invocar essa funções diretamente, mas pode querer invocar quando quiser fazer algum teste!</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>Objeto qualquer a ser injetado</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>Parâmetro a ser passado para a função formatter</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>Sobrescrever a função ser invocada. Se não especificado usa o defualt do 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 em qual operar</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>Envia mensagens para um LLM e retorna a resposta</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Esta é a forma mais básica de Chat promovida pelo PowershAI. Com esta função, você pode enviar uma mensagem para um LLM do provider atual. Esta função é mais baixo nível, de maneria padronizada, de acesso a um LLM que o powershai disponibiliza. Ela não gerencia histórico ou contexto. Ela é útil para invocar promps simples, que não requerem várias interações como em um Chat. Apesar de suportar o Functon Calling, ela não executa qualquer código, e apenas devolve a resposta do modelo.</maml:para> <maml:para></maml:para> <maml:para></maml:para> <maml:para>** INFORMACOES PARA PROVIDERS O provider deve implementar a função Chat para que esta funcionalidad esteja disponíveil. A função chat deve retornar um objeto com a resposta com a mesma especificação da OpenAI, função Chat Completion. Os links a seguir servem de base: https://platform.openai.com/docs/guides/chat-completions https://platform.openai.com/docs/api-reference/chat/object (retorno sem streaming) O provider deve implementar os parâmetros dessa função. Veja a documentação de cada parãmetro para detalhes e como mapear para um provider;</maml:para> <maml:para> Quando o modelo não suportar um dos parâmetros informados (isto pé, não houver funcionalidade equivalente,ou que possa ser implementanda de maneira equivalente) um erro deverá ser retornado.</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>O prompt a ser enviado. Deve ser no formato descrito pela função 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>Temperatuta do modelo</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 do modelo. Se não especificado, usa o default do 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>Máximo de tokens a ser retornado</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 da resposta Os formatos aceitáveis, e comportamento, devem seguir o mesmo da OpenAI: https://platform.openai.com/docs/api-reference/chat/create#chat-create-response_format Atalhos: "json"|"json_object", equivale a {"type": "json_object"} objeto deve especificar um esquema como se fosse passado direatamente a API da Openai, no 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>Lista de tools que devem ser invocadas! Você pode usar o comandos como Get-OpenaiTool*, para transformar funcões powershell facilmente no formato esperado! Se o modelo invocar a função, a resposta, tanto em stream, quanto normal, deve também seguir o modelo de tool caling da OpenAI. Este parâmetro deve seguir o mesmo esquema do Function Calling da 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>Especifique parâmetros diretos da API do provider. Isso irá sobrescrever os valores que foram calculados e gerados com base nos outros parâmetros.</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>Habilita o modelo Stream Você deve especificar um ScriptBlock que será invocado para cada texto gerado pelo LLM. O script deve receber um parâmetro que representa cada trecho, no mesmo formato de streaming retornado Este parâmetro é um objeto que conterá a propridade choices, que é nom mesmo esquema retornado pelo streaming da 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>Incluir a resposta da API em um campo chamado 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>Obtém o provider ativo</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Retorna o objeto que representa o provider ativo. Os providers são implementados como objetos e ficam armazenados na memória da sessão, em uma variável global. Esta função retorna o provider ativo, que foi definido com o comando Set-AiProvider.</maml:para> <maml:para>O objeto retorando é uma hashtable contendo todos os campos do provider. Este comando é comumente usado pelos providers para obter o nome do provider ativo. O parâmetro -ContextProvider retorna o provider atual onde o script está rodando. Se estiver rodando em um script de um provider, ele vai retornar aquele provider, ao invés do provider definido com 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 habilitado, usa o provider de contexto, isto é, se o código está rodando em um arquivo no diretorio de um provider, assume este provider. Caso contrario, obtem o provider habilitado atualmente.</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>lista os modelos disponíveis no provider atual</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este comando lista todos os LLM que podem ser usados com o provider atual para uso no PowershaiChat. Esta função depende que o provider implemente a função GetModels.</maml:para> <maml:para>O objeto retornado varia conforme o provider, mas, todo provider deve retorna um array de objetos, cada deve conter, pelo menos, a propridade id, que deve ser uma string usada para identificar o modelo em outros comandos que dependam de um modelo.</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>Obtém o provider mais recente do script atual</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este cmdlet é comumente uado pelos providers de forma indireta através de Get-AiCurrentProvider. Ele olha na callstack do powershell e identifica se o caller (a função que executou) faz parte de um script de um provider. Se for, ele retorna esse provider.</maml:para> <maml:para>Se a chamada foi feia em múltiplos providers, o mais recente é retornaod. Por exemplo, imagine esse cenário:</maml:para> <maml:para> Usuario -> Get-aiChat -> ProviderX_Function -> ProviderY_Function -> Get-AiNearProvider</maml:para> <maml:para>Neste caso, note que existem 2 calls de providers envolvidas. Neste caso, a funcao Get-AiNearProvider retornará o provider y, pois ele é o mais recente da 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>Retorna os providers disponíveis</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este comando lista os providers implementando sno powershai. PAra saber mais sobre providers consulte o tópico 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>Obtém a lista de modelos do 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>Obtém as informacoes dos parâmeteros de um 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>Obtem toda as sessions criadas, ou uma com um nome específico.</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>Especifique o nome da session. * obtém todas . obtém a 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 é uma string, faz uma busca usando - operador -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>Get by id (Session must by a 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>Lista todos as calls de uma sessão</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>Retorna as funcoes criadas com 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>Obtém informacoes de um model especifico</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 por um space especifico</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>Obtém informacoes de um space específocp!</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 por um space especifico (ou array de spaces)</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>Filtrar todos os spaces por autor</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>Filtrar todos os spaces do usuario atual!</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>Não cria uma sessão gradio automatica. Por padrao, em spaces gradios, ele ja cria uma gradio session!</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>Obtém informacoes do usuário logado atualmente 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>usar um token alternaitvo para checar validade!</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: (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>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-MaritalkModels</command:name> <command:verb>Get</command:verb> <command:noun>MaritalkModels</command:noun> <maml:description> <maml:para>Get-MaritalkModels</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>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>Get-OpenAiAnswerCost [[-answers] <Object>]</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 comandos do powershell para 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>Função auxiliar para converter um script .ps1 em um formato de schema esperado pela OpenAI. Basicamente, o que essa fução faz é ler um arquivo .ps1 (ou string) juntamente com sua help doc. Então, ele retorna um objeto no formato especifiado pela OpenAI para que o modelo possa invocar!</maml:para> <maml:para>Retorna um hashtable contendo as seguintes keys: functions - A lista de funções, com seu codigo lido do arquivo. Quando o modelo invocar, você pode executar diretamente daqui.</maml:para> <maml:para> tools - Lista de tools, para ser enviando na chamada da OpenAI.</maml:para> <maml:para>Você pode documentar suas funções e parâmetros seguindo o Comment Based Help do 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>Retorna um ou mais Chats criados com New-PowershaAIChat</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este comando permite retornar o objeto que representa um Powershai Chat. Este objeto é o objeto referenciando internamente pelos comandos que operam no Powershai Chat. Apesar de certos parâmetros você poder alterar diretamente, não é recomendável que faça esta ação. Prefira sempre usar a saída desse comando como entrada para os outros que comandos 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 do chat Nomes especiais: . - Indica o proprio chat * - Indica todos os chats</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>Define o chat como ativo, quando o id especifciado não é um nome especial.</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 erros zde validação</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>Retorna a lista de parâmetros disoponíveis em um chat</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este comando retorna um objeto contendo a lista de propriedades. O objeto é, na verdade, um array, onde cada elemento representa uma propriedade. Esse array retornado possui algumas modificações para faciltiar o acesso aos parametros. Você pode acessar os parâmetros usando o objeto retornado diretamente, sem a necessidade de fitrar sobre a lista de parâmetros. Isso é útil quando se desejar acessar um parâmetro específico da lista.</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>Obtéma a list de tools atuais.</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>obter especifico pelo nome ou o proprio objeto! Se terminar como um .ps1, trata como script, a menos que ForceCommand seja usado!</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>listar somente as tools habilitadas</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 de origem</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 obtendo uma tool específica, procurar na lista de tools globais.</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>Trata tool como um command!</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>Lista todos os Context Formatters compactos disponíveis</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Certos Context Formatters disponibilizados pelo PowershAI podem ter um nome compacto (ou alias, se preferir), para facilitar sua definição. Este cmdlet retorna todos esses momes que podem ser usados ao uisar 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>Obtém uma referência para variável que define os default parameters</maml:para> </maml:description> </command:details> <maml:description> <maml:para>No Powershell, módulos tem seu próprio escopo de variáveis. Portanto, ao tentar definir essa variável fora do escopo correto, não afetará os comandos dos módulos. Este comando permite que o usuário tenha acesso a variável que controla o default parameter dos comandos do módulo. Na maior parte, isso vai ser usado para debug, mas, eventualmente, um usuário pode querer definir parâmetros default.</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>O exemplo abaixo mostra como definir a variável de ebug default do comanod 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>Usa o provider atual para ajudar a obter ajuda sobre o powershai!</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este cmdlet utiliza os próprios comandos do PowershAI para ajudar o usuário a obter ajuda sobre ele mesmo. Basicamente, partindo da pergunta do usuário, ele monta um prompt com algumas informacoes comuns e helps basicos. Então, isso é enviando ao LLM em um chat.</maml:para> <maml:para>Devido ao grande volume de dados enviandos, é recomendando usar esse comando somente com providers e modeos que aceitam mais de 128k e que sejam baratos. Por enquanto, este comando é experimental e funciona penas com estes modelos: - Openai gpt-4*</maml:para> <maml:para>Internamente, ele irá criar um Powershai Chat chamado "_pwshai_help", onde manterá todo o histórico!</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>Descreva o texto de ajuda!</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 quiser help de um comando específico, informe o comando aqui Não precisa ser somente um comando do 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>Recria o 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 uma configuração exportada com Export-PowershaiSettings</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este cmdlet é o pair do Export-PowershaiSettings, e como o nome indica, ele importa os dados que foram exportados. Você deve garantir que a mesma senha e o mesmo arquivo são passados. IMPORTANTE: Este comando sobscreverá todos os dados configurados na sessão. Só execute ele se tiver certeza absoluta que nenhum dado configurado previamente pode ser perdido. Por exemplo, alguma API Token nova gerada recentemente.</maml:para> <maml:para>Se você estivesse especifciado um caminho de export diferente do padrão, usando a variável POWERSHAI_EXPORT_DIR, deve usa ro mesmo aqui.</maml:para> <maml:para>O processo de import valida alguns headers para garantir que o dado foi descriptografado corretamente. Se a senha informanda estiver incorreta, os hashs não vão ser iguais, e ele irá disparar o erro de senha incorreta.</maml:para> <maml:para>Se, por outro lado, um erro de formado invalido de arquivo for exibido, significa que houve alguma corrupção no proesso de import ou é um bug deste comando. Neste caso, você pode abrir uma issue no github relatando o 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>------------------------ Import padrão ------------------------</maml:title> <dev:code>Import-PowershaiSettings</dev:code> <dev:remarks> <maml:para></maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------- Importando do OneDrive --------------------</maml:title> <dev:code>$Env:POWERSHAI_EXPORT_DIR = "C:\Users\MyUserName\OneDrive\Powershai" Import-PowershaiSettings</dev:code> <dev:remarks> <maml:para>Importa as configurações que foram exportadas para um diretório alternativo (one drive).</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>Envia mensagem para um LLM, com suporte a Tool Calling, e executa as tools solicitadas pelo modelo como comandos powershell.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Esta é uma função auxiliar para ajudar a fazer o processamento de tools mais fácil com powershell. Ele lida com o processamento das "Tools", executando quando o modelo solicita!</maml:para> <maml:para>Você deve passar as tools em um formato específico, documentando no tópico about_Powershai_Chats Esse formato mapeia corretamente funções e comandos powershell pra o esquema aceitável pela OpenAI (OpenAPI Schema). Este comando encapsula toda a lógica que identifica quando o modelo quer invocar a função, a execução dessas funções,e o envio dessa resposta de volta ao modelo. Ele fica nesse loop até que o modelo pare de decidir invocar mais funções, ou que o limite de interações (sim, aqui chamamos de interações mesmo, e não iterações) com o modelo tenha finalizado.</maml:para> <maml:para>O conceito de interação é simples: Cada vez que a função envia um prompt para o modelo, conta como uma integração. Abaixo está um fluxo típico que pode acontecer:</maml:para> <maml:para></maml:para> <maml:para>Você pode obter mais detalhes do funcionamento consultando o tópico 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 de tools, conforme explicado na doc deste comando Use os resultado de Get-OpenaiTool* para gerar os valores possíveis. Você pode passar um array de objetos do tipo OpenaiTool. Se uma mesma funcoes estiver definida em mais de 1 tool, a primeira encontrada na ordem definida será usada!</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>máx 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>No total, permitir no max 5 iteracoes!</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>Quantidade maximo de erros consecutivos que sua funcao pode gerar antes que ele encerre.</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>Event handler Cada key é um evento que será disparado em algum momento por esse comando! eventos: answer: disparado após obter a resposta do modelo (ou quando uma resposta fica disponivel ao usar stream). func: disparado antes de iniciar a execução de uma tool solicitada pelo modelo. exec: disparado após o modelo executar a funcao. error: disparado quando a funcao executada gera um erro stream: disparado quando uma resposta foi enviada (pelo stream) e -DifferentStreamEvent beforeAnswer: Disparado após todas as respostas. Util quando usado em stream! afterAnswer: Disparado antes de iniciar as respostas. Util quando usado em 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>Envia o response_format = "json", forçando o modelo a devolver um 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>Adicionar parâmetros customizados diretamente na chamada (irá sobrescrever os parâmetros definidos 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>Faz print constantes da tela e envia para o modelo ativo. Este comando é EXPERIMENTAL e pode mudar ou não ser disponibilizado nas próximas versões!</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este comando permite, em um loop, obter prints da tela!</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 padrão para ser usado com a imagem enviada!</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: Explique essa imagem</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>Fica em loop em tirando vários screenshots Por padrão, o modo manual é usado, onde você precisa pressionar uma tecla para continuar. as seguintes teclas possuem funcoes especiais: c - limpa a tela ctrl + c - encerra o 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 especificado, habilita o modo repeat automático, onde a cada número de ms especificados, ele irá enviar para a tela tela. ATENÇ O: No modo automatico, você poderá ver a janela piscar constatemente, o que pode ser ruim para a leitura.</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>Recria o chat usado!</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: (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>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: 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: (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>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: 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: (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-GradioDynamicApi</command:name> <command:verb>Invoke</command:verb> <command:noun>GradioDynamicApi</command:noun> <maml:description> <maml:para>Invoca um endpoint da API.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este é maisum cmdlet disponibilizado para invocar a API do Gradio! Os parâmetros são disponibilizados dinamicamente, portanto, o help deles não está dispnível com 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>Executa chamadas HTTP para o Gradio e já adiciona os headers comuns, como autenticação, etc.</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>Cria uma nova call para um endpoint na session atual.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Realiza uma call usando a API do Gradio, em um endpoint especifico e passando os parâmetros desejados. Esta call irá gerar um GradioApiEvent (veja Send-GradioApi), que irá ser salva internamente nas configuraçoes da sessão. Este objeto contém tudo o que é necessário para obter o resultado da API. O cmdlet irá retornar um objeto do tipo SessionApiEvent contendo as seguintes propriedades: id - Id interno do evento gerado. event - O evento interno gerado. Pode ser usado diretamente com os cmdlets que manipulam eventos.</maml:para> <maml:para>As sessions possuem um limite de Calls definidas. O objetivo é impedir criar calls indefinidas de maneira que perca o controle.</maml:para> <maml:para>Existem duas opcoes da sessao que afetam a call (podem ser alteradas com Set-GradioSession): - MaxCalls Controla o maximo de calls que podem ser criadas</maml:para> <maml:para> - MaxCallsPolicy Conrola o que fazer quando o Max for atingido. Valores possiveis: - Error = resulta em erro! - Remove = remove a mais antiga - Warning = Exibe um warning, mas permite ultrpassar o limte.</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 do endpoint (sem a barra inicial)</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>Lista de parâmetros Se é um array, passa diretamente para a Api do Gradio Se é uma hashtable, monta o array com base na posição dos parâmetros retornados pelo /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 especificado, cria com um evento id ja existente (pode ter sido gerado fora do 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>Sessao</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>Forçar o uso de um novo token. Se "public", então não usa nenhum 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 a API do 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>Igora o token atual e lista somente recursos públicos</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 um token especifico</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 a API de Inferência 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>Forçar usar endpoint de chat completion Params deverá ser tratado como o mesmo params da Api da Openai (Veja o cmdle Get-OpenaiChat). Mais info: https://huggingface.co/blog/tgi-messages-api So funciona com modelos que possuem um chat template!</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 para ser usado no caso de 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>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>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:</maml:para> </maml:description> <command:parameterValue 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>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>messages</maml:name> <maml:description> <maml:para>Parameter Set: (All)</maml:para> <maml:para>Type: Object</maml:para> <maml:para>Aliases: prompt</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: 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>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: 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>top_p</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>Invoke-PowerhsaiConsoleDraw</command:name> <command:verb>Invoke</command:verb> <command:noun>PowerhsaiConsoleDraw</command:noun> <maml:description> <maml:para>Cria um quadro virtual de texto, e escreve caracteres dentro dos limites desse quadro</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Cria um quadro de desenho no console, que é atualizado em somente uma região específica! Você pode enviar várias linhas de texto e afuncao cuidará de manter o desenho no mesmo quadro, dando a impressão que apenas uma região está sendo atualizada. Para o efeito desejado, esta funcao deve ser invocada repetidamente, sem outros writes entre as invocacoes!</maml:para> <maml:para>Esta função só deve ser usada no modo interativo do powershell, rodando em uma janela de console. Ela é útil para usar em situações em que você quer ver o progresso de um resultado em string exatamente na mesma área, podendo comparar melhor variações. É apenas uma função auxiliar.</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>Texto a ser escrito. Pode ser um array. Se ultrapassar os limties de W e H, será truncado Se é um script bloc, invoca o codigo passando o objeto do 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 de caracteres em cada linha</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 de linhas</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>Caractere usado como espaço vazio</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>Objeto do 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>Repassa o objeto</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>O seguinte exemplo escreve 3 string de texto a cada 2 segundos.</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>Permite invocar a maioria das funções de uma maneira compacta</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este é um simples utilizario que permite invocar diversas funcoes de uma forma mais reduzia na linha de comando. Note que nem todos os comandos podem ser suportados ainda.</maml:para> <maml:para>É melhor usado com o alia 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>Command name</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 as 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>Cria uma nova sessão Gradio.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Uma Sessions representa uma conexão para uma app Gradio. Imagina que uma session seja como se fosse uma aba do browser aberto conectado em uma determinada app gradio. Os arquivos enviados, chamadas feitas, logins, são todas gravas nesta session.</maml:para> <maml:para>Este cmndlet retorna um objeto que chamamos de "GradioSesison". Este objeto pode ser usado em outros commandlets que dependem de session (e pode ser definido uma session ativa, que todos os cmdlets usam por padrão se não especificado). Toda session tem um nome que a identifica unicamente. Se não informado pelo usuário, será criado autoamticamente com base na URL da app. Não podem existir 2 sessions com o mesmo nome.</maml:para> <maml:para>Ao criar um session, este cmdlet salva esta session em um repositorio interno de sessions.</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 da 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 unico que identifica esta sessao!</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>Diretório onde fazer o donwload dos arqiovpos</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>Cria funcoes que encapsulam as chamadas de um endpoint do Gradio (ou todos os endpoints). Este cmdlet é muito útil para criar funcoes powershell que encapsulam um endpoint API do Gradio, onde os parâmetros da API são criados como parâmetros da função. Assim, recursos nativos do powershell, como auto complete, tipo de dados e documentação, podem ser usados e fica muito fácil invocar qualquer endpoint de uma sessão.</maml:para> <maml:para>O comando consulta os metadados dos endpoints e parâmetros e cria as funcoes powershell no escopo global. Com isso, o usuario consegue invocar as funções diretamente, como se fossem funcoes normal. Por exemplo, suponha que uma aplicação Gradio no endereço http://mydemo1.hf.space tenho um endpoint chamado /GenerateImage para gerar imagens com o Stable Diffusion. Assuma que essa aplicação aceite 2 parâmetros: Prompt (a descriao da imagem a ser gerada) e Steps (o numero total de steps).</maml:para> <maml:para>Normalmente, voce poderia usar o comando Invoke-GradioSessionApi, assim: </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>Isso iria dar inicio a API, e você poderia obter os resultados usando Update-GradioApiResult:</maml:para> <maml:para>$ApiEvent | Update-GradioApiResult</maml:para> <maml:para>Com este cmdlet, você consegue encapsular um pouco mais estas chamadas:</maml:para> <maml:para>$MySession = Get-GradioSession http://mydemo1.hf.space $MySession | New-GradioSessionApiProxyFunction</maml:para> <maml:para>O comando acima criará uma funcao chamada Invoke-GradioApiGenerateimage. Então, voc poe usar de maneira simples para gerar a imagem:</maml:para> <maml:para>Invoke-GradioApiGenerateimage -Prompt "A car" -Steps 100 </maml:para> <maml:para>Por padrão, o comando executaria e já iria obter os eventos de resultados, escrevendo no pipeline para que você possa integrar com outros comandos. Inclusive, conectar vários spaces é muito simples, veja abaixo sobre pipeline.</maml:para> <maml:para>NOMENCLATURA </maml:para> <maml:para> O nome das funcoes criadas segue o formato: <Prefix><NomeOp> <Prefix> é o valor do parametro -Prefix deste cmdlet. <NomeOp> é o nome da operacao, mantido somente letras e números</maml:para> <maml:para> Por exemploi, se a operção é /Op1, e o Prefixo INvoke-GradioApi, a seguinte funcao será criad: Invoke-GradioApiOp1</maml:para> <maml:para></maml:para> <maml:para>PARAMETROS As funcoes criadas contém a lógica necessária para transformar os parâmetros passados e executar o cmdlet Invoke-GradioSessionApi. Ou seja, o mesmo retorno se aplica como se estivesse invocando este cmdlet diretamente. (Isto é, um evento será retornado e adicionaod alista de eventos da sessao atual).</maml:para> <maml:para> Os parâmetros das funcoes podem variar conforme o endpoint da API, pois cada endpoint possui um conjunto diferente de parâmetros e tipos de dados. Parâmetros que são arquivos (ou lista de arquivos), possuem um passo adicional de upload. O arquivo pode ser referenciado localmente e o upload dele sera feito para o servidor. Caso seja informado uma URL, ou um objeto FileData recebido de outro comando, nenhum upload adicional será feito, apenas será gerado um objeto FileData correspondente para envio via API.</maml:para> <maml:para> Além dos parâmetros do endpoint, há um conjunto adicional de parâmetros que sempre serão adicionados a funcao criada. São eles: - Manual Se usado, faz com que o cmdlet retorne o evento gerado por INvoke-GradioSessionApi. Neste caso você terá que manualmente obter os resultados usando Update-GradioSessionApiResult</maml:para> <maml:para> - ApiResultMap Mapeia os resultados de outros comandos para os parâmetros. Veha mais sobre na seção PIPELINE.</maml:para> <maml:para> - DebugData Para fins de debug pelos desenvolvedores.</maml:para> <maml:para>UPLOAD Parametros que aceitam arquivos são tratados de uma maneira especial. Antes da invocacao da API, o cmdlet Send-GradioSessionFiles éusado para fazer o upload desses arquivos para o respectivo app gradio. Isso é uma oura grande vantagem de se usar esse cmdlet, pois isso fica transparente, e o usuário não precisa lidar com uploads.</maml:para> <maml:para>PIPELINE </maml:para> <maml:para> Uma das funcionalidades mais poderosas do powershell é o pipeline, one é possível conectar vários comandos usando o pipe |. E este cmdlet procura também usurfruir ao máximo desse recurso. Todas as funcoes criadas podem ser conectadas com o |. Ao fazer isso, cada evento gerado pelo cmdlet anterior é passado para o próximo. Considere duas apps gradios, App1 e App2. App1 possui o endpoint Img, com um parametro chamado Text, que gera imagens usando Diffusers, exibindo as parciais de cada imagem a medida que são geradas. App2 possui um endpoint Ascii, com um parametor chamado Image, que transforma uma iamgem em uma versão ascii em texto.</maml:para> <maml:para> Você pode conectar estes dois comandos de uma maneira muito simpels com o pipeline. Primeiro, crie as sessoes</maml:para> <maml:para> $App1 = New-GradioSession http://stable-diffusion $App2 = New-GradioSession http://ascii-generator</maml:para> <maml:para> Crie as funcoes $App1 | New-GradioSessionApiProxy -Prefix App # isso criar a funcao AppImg $App2 | New-GradioSessionApiProxy -Prefix App # isso criar a funcao AppAscii</maml:para> <maml:para> Gere a imagem e conecte com o gerador asciii :</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> Agora vamos quebrar a sequencia acima.</maml:para> <maml:para> Antes do primeiro pipe, temos o comando que gera a imagem: AppImg -Text "A car" Esta funcao está chamado o endpoint /Img de App1. Este endpoint produz uma saida para etapa da geracao de imagens com a lib Diffusers do hugging face. Neste caso, cada saida será uma imagem (bem embaraçada), até a última saida que será a iamgem final. Este resultado fica na proprodade data do objeto do pipeline. Ela é um array com os resultados.</maml:para> <maml:para> Logo em seguida no pipe, temos o comando: AppAscii -Map ImageInput=0 Este comando irá recber cada objeto gerado pelo comando AppImg, que no caso, são as imagens parciais do processo de difusão. Devido ao fato os comandos podem gerar uma rray de saidas, é preciso mapear exatamente qual dos resultados devem ser associados com quais parametros. Por isso, usamos o parametro -Map (-Map é um Alias, na verdade, o nome correto é ApiResultMap) A sintaxe é simples: NomeParam=DataIndex,NomeParam=DataIndex No comando acima, estamos dizendo: AppAscii, utilize o primeiro valor da proprodiade data no parametro ImageInput. Por exemplo, se AppImg retornasse 4 valores, e imagem estivesse na ultima posicao, vc deveria usar ImageInput=3 (0 é a primeira).</maml:para> <maml:para></maml:para> <maml:para> Por fim, o ultiomo pipe apenas evole o resultado de AppAscii, que agora se encontrano objeto do pipeline, $_, na proprodade .data (igual o resultado de AppImg). E, para complementar, o objeto do pipeline possui uma proprodade especial, chamada pipeline. Com ela, voce acessar todos os resultados dos comandos geraod.s Por exemplo, $_.pipeline[0], contém o resultado do primeiro comando (AppImg). </maml:para> <maml:para> Graça a esse mecanismo, fica muito mais fácil conectar diferentes apps Gradio em unico pipeline. Note que esta sequencia funciona apenas entre comandos gerados por New-GradioSessionApiProxy. Fazer o pipe de outros comanos, não irá produzir esse mesmo efeito (terá qiue usar algo como o For-EachObject e associar os parametros diretamente)</maml:para> <maml:para></maml:para> <maml:para>SESSOES Quando a funcao é criada, a sessao de origem é cravada junto com a funcao . Se a sessao for removida, o cmdlet irá gerar um erro. NEste caso, voce deve criar a funcao invocando este cmdlet novamente. O seguinte diagrama resume as dependencias envolvidas:</maml:para> <maml:para> New-GradioSessionApiProxyFunction(Prefix) ---> function <Prefix><OpName> ---> Send-GradioSessionFiles (quando houer arquivos) ---> Invoke-GradioSessionApi | Update-GradioSessionApiResult</maml:para> <maml:para>Uma vez que Invoke-GradioSessionApi é a executada no fim das contas, todas as regras delas se aplicam. Voce pode ser Get-GradioSessionApiProxyFunction para obter uma lista do que foi craido e Remove-GradioSessionApiProxyFunction para remover uma ou mais funcoes criadas. As funcoes são criadas com um 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>Criar somente para este endpoint em especifico</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>Prefixo das funcoes criadas</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>Sessao</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>Força a criação da funcão, mesmo se já existir uma com o mesmo 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>Gerar um novo id para openai tool call!</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>Cria um novo Powershai Chat.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>O PowershaAI traz um conceito de "chats", semelhantes aos chats que você vê na OpenAI, ou as "threads" da API de Assistants. Cada chat criado tem seu próprio conjunto de parâmetros, contexto e histórico. Quando você usa o cmdlet Send-PowershaiChat (alias ia), ele está enviando mensagens ao modelo, e o histórico dessa conversa com o modelo fica no chat criado aqui pelo PowershAI. Ou seja, todo o histórico da sua conversa com o modelo é mantido aqui na sua sessão do PowershAI, e não lá no modelo ou na API. Com isso o PowershAI mantém todo o controle do que enviar ao LLM e não depende de mecanismos das diferentes APIs de diferentes providers para gerenciar o histórico. </maml:para> <maml:para></maml:para> <maml:para>Cada Chat possui um conjunto de parâmetros que ao serem alterados afetam somente quele chat. Certos parâmetros do PowershAI são globais, como por exemplo, o provider usado. Ao mudar o provider, o Chat passa a usar o novo provider, mas mantém o mesmo histórico. Isso permite conversar com diferentes modelos, enquanto mantém o mesmo histórico. Além destes parâmetros, cada Chat possui um histórico. O histórico contém todas as conversas e interações feitas com os modelos, guardando as repostas retornadas pelas APIs.</maml:para> <maml:para>Um Chat também tem um contexto, que é nada mais do que todas as mensagesn enviadas. Cada vez que uma nova mensagem é enviada em um chat, o Powershai adiciona esta mensage ao contexto. Ao receber a resposta do modelo, esta resposta é adicionada ao contexto. Na próxima mensagem enviada, todo ess ehistórico de mensagem do contexto é enviado, fazendo com que o modelo, independente do provider, tenha a memória da conversa. o fato do contexto ser mantido aqui na sua sessão do Powershell permite funcionaldiades como gravar o seu histórico em disco, implementar um provider exclusivo para guardar o seu hitórico na nuvem, manter apenas no seu Pc, etc. Futuras funcionalidades podem se beneficiar disso.</maml:para> <maml:para>Todos os comandos *-PowershaiChat giram em todos do chat ativo ou do chat que voce explicitamente especifica no parametro (geralmente com o nome -ChatId). O ChatAtivo é o chat em que as mensagens serão enviadas, caso nao seja especificado o ChatId (ou se o comando não permite especificar um chat explicito). Existe um chat especial chamado "default" que é o chat criado sempre que voce usa o Send-PowershaiChat sem especifciar um chat e se não houver chat ativo definido. Se você fechar sua sessão do Powershell, todo esse histoico de Chats é perdido. Você pode salvar em disco, usando o comando Export-PowershaiSettings. O conteudo é salvo criptografado por uma senha que voce especificar.</maml:para> <maml:para>Ao emviar mensagens, o PowershaAI mantém um mecanismo interno que limpa o contexto do chat, para evitar enviar mais do que o necessário. O tamanho do contexto local (aqui na sua sessao do Powershai, e nao do LLM), é controlado por um parametro (use Get-PowershaiChatParameter para ver a lista de parametros)</maml:para> <maml:para>Note que, devido a essa maneira do Powershai funcionar, dependendo da quantidade de informacoes enviadas e retornadas, mais as configuracoes dos parametros, voce pode fazer seu Powershell consumir bastante memória. Voce pode limpar o contexto e historico manualmente do seu chat usando Reset-PowershaiCurrentChat</maml:para> <maml:para>Veja mais detalhes sobre no tópico 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 do chat. Se não especifico, irá gerar um padrão ALguns padrões de id são reservados para uso interno. Se você us´-alos poderá causar instabilidades no PowershAI. Os seguintes valores são reservados: 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>Cria somente se não existe um chat com o mesmo 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>Forçar recriar o chat se ele já estiver criado!</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>Cria o chat e inclui essas 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: 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>Cria um nova Exception cusotmizada para o PowershaAI</maml:para> </maml:description> </command:details> <maml:description> <maml:para>FAciltia a criação de exceptions customizadas! É usada internamente pelos providers para criar exceptions com propriedades e tipos que podem ser restados posteriormente.</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>A mensagem da exception!</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>Propriedades personazalidas</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 adicional!</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>Exception pai!</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>Cria um novo objeto que representa os parâmetros de um PowershaiChat</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Cria um ojbeto padrao contendo todos o spossveis parametros que podem ser usados no chat! O usuário pode usar um get-help New-PowershaiParameters para obter a doc dos parametros.</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 o modo stream, isto é, as mensagens são mostradas a medida que o modelo as produz</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>Habilia o modo JSON. Nesse modo, o modelo é forçado a retornar uma resposta com JSON. Quandoa ativado, as mensagens geradas via stream não sãoe xibidas a medida que são produzidas, e somente o resultado final é retornado.</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 do modelo a ser usado Se null, usa o modelo definido com 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>Maximo de tokens a ser retornado pelo modelo</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>Printa o prompt inteiro que está sendo enviado ao 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>Ao final de cada mensagem, exibe as estatísticas de consumo, em tokens, retornadas pela 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>Maximo de interacoes a serem feitas de um só vez Cada vez uma mensagem é enviada, o modelo executa 1 iteração (envia a mensagem e recebe uma resposta). Se o modelo pedir um function calling, a restpoa gerada será enviada novamente ao modelo. Isso conta como outra interacao. Esse parâmetro controla o máximo de interacoes que podem existir em cada chamada. Isso ajuda a prevenir loops infinitos inesperados.</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>MAximo de erros em sequencia gerado por Tool Calling. Ao usar tool calling, esse parametro limita quantos tools sem sequencia que resultaram em erro podem ser chamados. O erro consideraod é a exception disparada pelo script ou comando configuirado.</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>Tamanho máximo do contexto, em caracteres No futuro, será em tokens Controla a quantidade de mensagens no contexto atual do chat. Quando esse número ultrapassar, o Powershai limpa automaticamente as mensagens mais antigas.</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>Função usada para formatação dos objetos passados via 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>Argumentos para ser passados para a 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, exibe os argumenots das funcoes quando o Tool Calling é ativado para executar alguma funcao</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>Exibe os resultados das tools quando são executadas pelo PowershAI em resposta ao tool calling do modelo</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>System Message que é garantida ser enviada sempre, independente do histórico e clenaup do 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>Parãmetros a serem passados diretamente para a API que invoca o modelo. O provider deve implementar o suporte a esse. Para usá-lo você deve saber os detalhes de implementação do provider e como a API dele funciona!</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>Controla o template usado ao injetar dados de contexto! Este parâmetro é um scriptblock que deve retornar uma string com o contexto a ser injetado no prompt! Os parâmetros do scriptblock são: FormattedObject - O objeto que representa o chat ativo, já formatado com o Formatter configurado CmdParams - Os parâmetros passados para Send-PowershaAIChat. É o mesmo objeto retorndo por GetMyParams Chat - O chat no qual os dados estão sendo enviados. Se nulo, irá gerar um default. Verifique o cmdlet Send-PowershaiChat para detalhes</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>Remove gradio session</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>Especifique o nome da session. * obtém todas . obtém a default</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>Remove api cals da lista interna da sessão</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este cmdlet auxilia na remoção de evenots gerados por Invoke-GradioSessionApi da lista internas de calls. Normalmente, você quer remover os eventos que já processou, passanso o id direto. Mas, este cmdlet permite fazer vários tipos de removação, incluindo eventos não procesando. Use com cautela, pois, uma vez que um vento é removido da lista, os dados associados com ele também são removidos. A menos que você tenha feito uma cópia do evento (ou dos dados resultantes) para uma outra variável, você não será mais capaz de recuperar estas informações. A removação de evenots também é útil para ajudar a liberar a memória consumida, que, dependendo da quantidade de eventos e dados, pode ser 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>Especifica o evento, ou eventos, a serem removidos Id também pode ser um desses valores especiais: clean - Remove somente as calls que já completaram! all - Remove tudo, inclunido os que não concluiram!</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>Por padrão, apenas os eventos passados com status "completed" são removidos! Use -Force para remover inpdenente do status!</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>Nao faz nenhuma remocação, mas retorna os candidados!</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 da sessão</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>Remove funcoes criadas com New-GradioSessionApiProxy (use Get-GradioSessionApiProxyFunction) para retornar!</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>Remove um chat e retorna o objeto com todo o histórico e contexto</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 do chat a ser removido, ou objeto representando o 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>Remove uma tool 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 do comando, script, funcoes que foi previamente adicioonado como tool. Se for um arquivo .ps1, trata como um script, a menos que -Force command é usado. Você pode usar o resultado de Get-PowershaiChatTool via pipe para este comando, que ele irá reconhecer Ao enviar o objeto retornado, todos os demais parâmetros são ignorados.</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>Força tratar tool como um comando, quando é uma string</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 de onde remover</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>Remover da lista global, se a tool foi adicionada previamente como global</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>Reset-OpenaiBaseUrl</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 o cache de AI Tools.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>O PowershAI mantém um cache com as tools "compiladas". Quando o PowershAI envia a lista de tools pro LLM, ele precisa enviar junto a descrição da tools, lista de paraemtros, descrição, etc. Montar essa lista pode consumir um tempo signifciativo, uma vez que ele vai varrer a lista de tools, funcoes, e pra cada um, varrer o help (e o help de cada parametro).</maml:para> <maml:para>Ao adicionar um cmdlet como Add-AiTool, ele não compila naquele momento. Ele deixa para fazer isso quando ele precisa invocar o LLM, na funcao Send-PowershaiChat. Se o cache não existe, então ele compila ali na hora, o que pode fazer com que esse primeiro envio ao LLM, demora alguns millisegundos ou segundos a mais que o normal. Esse impacto é proprocional ao numero de funcoes e parâmetros enviados. Sempre que você usa o Add-AiTool ou Add-AiScriptTool, ele invalida o cache, fazendo com que na proxima execução, ele seja gerado. ISso permite adicionar muitas funcoes de uma só vez, sem que seja compilado cada vez que você adicona.</maml:para> <maml:para>Porém, se você alterar sua função, o cache não é recalcuado. Então, você deve usar esse cmdlet para que a proxima execução contenha os dados atualizados das suas tools após alteracoes de código ou de 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>Apaga o histórico e o contexto do chat atual.</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>Envia dados a um Gradio e retorna um objeto que representa o evento! Passe esse objeto para os demais cmdlets para obter os resultados.</maml:para> <maml:para>FUNCIONAMENTO DA API DO GRADIO </maml:para> <maml:para> Baseado em: https://www.gradio.app/guides/querying-gradio-apps-with-curl</maml:para> <maml:para> Para entender melhor como usar este cmdlet, é importante entender como a API do Gradio funciona. Quando invocamos algum endpoint da API, ele não retorna os dados imediatamente. Isso se deve ao simples fato do processamento ser extenso, devido a natureza (IA e Machine Learning). Então, ao invés de retornar o resultado, ou aguardar indefinidamente, o Gradio retorna um "Event Id". Com esse evento, conseguimos periodicamente obter os resultaods gerados. O gradio vai gerar mensagens de eventos com os dados que foram gerados. Precisamos passar o EventId gerado para obter os novos pedaços gerados. Estes eventos são enviados via Server Side Events (SSE), e podem ser um destes: - hearbeat A cada 15 segundos, o Gradio vai enviar este evento para manter a conexão ativa. Por isso que, ao usar o cmdlet Update-GradioApiResult, ele pode demorar um pouco para retornar.</maml:para> <maml:para> - complete É a última mensagem enviada pelo Gradio quando os dados foram gerados com sucesso!</maml:para> <maml:para> - error Enviado quando houve algum erro no processamento. - generating É gerado quando a API já tem dados disponíveis, mas, ainda pode vir mais.</maml:para> <maml:para> Aqui no PowershAI, nós separamos isso também em 3 partes: - Este cmdlet (Send-GradioApi) faz a requisição inicial para o Gradio e retorna um objeto que representa o evento (chamamods ele de um objeto GradioApiEvent) - Este objeto resultante, de tipo GradioApiEvent, contém tudo o que é necessário para consultar o evento e ele também guarda os dados e erros obtidos. - Por fim, temos o cmdlet Update-GradioApiResult, onde você deve passar o evento gerado, e ele irá consultar a API do gradio e obter os novos dados. Verifiaue o help deste cmdlet para mais informações de como controlar esse mecanismo de obter os dados.</maml:para> <maml:para></maml:para> <maml:para> Então, em um flixo normal, você deve fazer o seguinte: </maml:para> <maml:para> #INvoque o endpoint do graido! $MeuEvento = SEnd-GradioApi ... </maml:para> <maml:para> # Obtenha resultados até que tenha temrinado! # Verifique o help deste cmdlet para aprender mais! $MeuEvento | Update-GradioApiResult</maml:para> <maml:para>Objeto GradioApiEvent</maml:para> <maml:para> O objeto GradioApiEvent resultante deste cmdlet contém tudo o que é necessário para que PowershAI controle o mecanismo e obtenha os dados. É importante que você conheça sua estrutura para que saiba como coletar os dados gerados pela API. Propriedades:</maml:para> <maml:para> - Status Indica o status do evento. Quando este status for "complete", significa que a API já terminou o processamento e todos os dados possíveis já foram gerados. Enquanto for diferente disso, você deve invocar Update-GradioApiResult para que ele chque o status e atualize as informacoes. </maml:para> <maml:para> - QueryUrl Valor interno que contém o endpoint exato par a consulta dos resultados</maml:para> <maml:para> - data Um array contendo todos os dados de resposta gerado. Cada vez que você invoca Update-GradioApiResult, se houver dados, ele irá adicionar a este array. - events Lista de eventos que foram gerados pelo server. </maml:para> <maml:para> - error Se houve erros na resposta, esse campio conterá algum objeto, string, etc., descrevendo mais detalhes.</maml:para> <maml:para> - LastQueryStatus Indica o status da última consulta na API. Se "normal", indica que a API foi consultada e retornou até o fim normalmente. Se "HeartBeatExpired", indica que a consulta foi interrompida devido ao timeout de hearbeat configurado pelo usuário no cmdlet Update-GradioApiResult</maml:para> <maml:para> - req Dados da requisicao feita!</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 informado, não chamada a API, mas cria o objeto e usa esse valor como se fosse o retorno</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>Faz um upload de um ou mais arquivos. Retorna um objeto no mesmo formto de gradio FileData(https://www.gradio.app/docs/gradio/filedata). Caso queria retornar apenas o path do arquivo no server, use o parametro -Raw. Thanks https://www.freddyboulton.com/blog/gradio-curl and 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 de arquivos (paths ou 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>Retorna o resultado direto do servidor!</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>Faz o upload de arquivos em uma sessao do Gradio! Retorna um objeto FileData para arquivo em que foi feito o upload e salva internalmente a referencia.</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>Envia uma mensagem em um Chat do Powershai</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este cmdlet permite que você envie uma nova mensagem para o LLM do provider atual. Por padrão, ele envia no chat ativo. Você pode sobrescrever o chat usando o parâmetro -Chat. Se não houver um chat ativo, ele irá usar o default. Diversos parâmetros do Chat afetam como este comando. Veja o comando Get-PowershaiChatParameter para mais info sobre os parâmetros do chat. Além dos parâmetros do chat, os próprios parâmetros do comando podem sobrescrever comportamento. Para mais detalhes, consule a documentação de cada parâmetro deste cmdlet usando get-help. Para simplicidade, e manter a liNha de comando limmpa, permitindo o usuário focar mais no prompt e nos dados, alguns alias são disponibilizados. Estes alias podem ativar certos parâmetros. São eles: ia|ai Abreviação de "Inteligência Artifical" em português. Este é um alias simples e não muda nenum parâmetro. Ele ajuda a reduzir bastante a linha de comando.</maml:para> <maml:para> iat|ait O mesmo que Send-PowershaAIChat -Temporary</maml:para> <maml:para> io|ao O mesmo que Send-PowershaAIChat -Object</maml:para> <maml:para> iam|aim O mesmo que Send-PowershaaiChat -Screenshot </maml:para> <maml:para>O usuário pode criar seus próprios alias. Por exemplo: Set-Alias ki ia # DEfine o alias para o alemao! Set-Alias kit iat # DEfine o alias kit para iat, fazendo o comportamento ser igual ao iat (chat temporaria) quando usado o 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>o prompt a ser enviado ao modelo</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>System message para ser incluída</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>O contexto Esse parâmetro é pra usado preferencialmente pelo pipeline. Ele irá fazer com que o comando coloque os dados em tags <contexto></contexto> e injeterá junto no 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>Força o cmdlet executar para cada objeto do pipeline Por padrão, ele acumula todos os objetos em um array, converte o array para string só e envia de um só vez pro 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>Habilia o modo json nesse modo os resultados retornados sempre será um JSON. O modelo atual deve suportar!</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>Modo Object! neste modo o modo JSON será ativado automaticamente! O comando não vai escrever nada na tela, e vai retornar os resultados como um objeto! Que serão jogados de volta no 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 os dados de contexto enviados ao LLM antes da resposta! É útil para debugar o que está senod injetado de dados no 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>Não enviar as conversas anteriores (o histórico de contexto), mas incluir o prompt e a resposta no contexto histórico.</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>Ignorar a resposta do LLM, e não incluir o prompt no contexto histórico</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>Não envia o histórico e nem inclui a resposta e prompt. É o mesmo que passar -Forget e -Snub juntos.</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>Desliga o function call para esta execução somente!</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>Alterar o contexto formatter pra este Veha mais sobre em 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>Parametros do contexto formatter alterado.</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>Retorna as mensagens de volta no pipeline, sem escrever direto na tela! Esta opção assume que o usuário irá ser o responsável por dar o correto destino da mensagem! O objeto passado ao pipeline terá as seguintes propriedades: text - O texto (ou trecho) do texto retornado pelo modelo formatted - O texto formatado, incluindo o prompt, como se fosse escrito direto na tela (sem as cores) event - O evento. Indica o evento que originou. São os mesmos eventos documentaados em Invoke-AiChatTools interaction - O objeto interaction gerado por 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>Retorna um array de linhas Se o modo stream estiver ativado, retornará uma linha por vez!</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>Sobrescrever parâmetros do chat! Especifique cada opção em umas hastables!</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>Especifica diretamente o valor do chat parameter RawParams! Se especificado também em ChatParamOverride, um merge é feito, dando prioridade aos parametros especificados aqui. O RawParams é um chat parameter que define parametros que serão enviados diretamente a api do modelo! Estes parametros irão sobrescrever os valores padrões calculados pelo powershai! Com isso, o usuario tem total controle sobre os parâmetros, mas precisa conmhecer cada provider! Também, cada provider é responsável por prover essa implementaão e usar esses parâmetros na 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: 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>Captura um print screen da tela que está atrás da janela do powershell e envia junto com o prompt. Note que o mode atual deve suportar imagens (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>Configurar o LLM default do provider atual</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Usuários podem configurar o LLM default, que será usado quando um LLM for necessário. Comandos como Send-PowershaAIChat, Get-AiChat, esperam um modelo, e se não for informado, ele usa o que foi definido com esse 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 do modelo, conforme retornado por Get-AiModels Você pode usar tab para completar a linha de 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>Força definir o modelo, mesmo que não seja retornaod por 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>Altera o provider atual</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Providers são scripts que implementam o acesso à suas respectivas APIs. Cada provider tem sua forma de invocar APIs, formato dos dados, schema da resposta, etc. Ao mudar o provider, você afeta certos comandos que operam no provider atual, como `Get-AiChat`, `Get-AiModels`, ou os Chats, como Send-PowershaAIChat. Para saber mais detalhes sobre os providers consule o tópico 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 do 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>Set-ClaudeToken [<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>Define a API Key (o Token) da Api do 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>Define algumas opções da session.</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>Sessão 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>Define a session como a default</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>Configurar o maximo de calls. Veja mais em 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>Configurar a policy de max calls Veja mais em 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>Define o token do 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>Set-MaritalkToken [<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>Set-OllamaUrl [[-url] <Object>]</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>Set-OpenaiToken [<CommonParameters>]</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>Altera o chat ativo</maml:para> </maml:description> </command:details> <maml:description> <maml:para>O chat ativo é o chat padrão nos quais os comandos do Powershai Chat são enviados. Se existem somente 1 chat, ele é considerado ativo, por padrão.</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>Define qual será a funcao usada para formatar os objetos passados pro parâmetro Send-PowershaiChat -Context</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Ao invocar Send-PowershaiChat em um pipe, ou passando diretamente o parâmetro -Context, ele irá injetar esse objeto no prompt do LLM. Antes de injetar, ele deve converter esse objeto para uma string. Essa conversão é chamada de "Context Formatter" aqui no Powershai. O Context Formatter é uma funcao que irá pegar cada objeto passado e convertê-lo para uma string para ser injetada no prompt. A função usada deve receber como primeiro parametro o objeto a ser convertido. Os demais parametros ficam a criterio. Os valor deles pode ser especicicados usando o parametro -Params dessa funcao!</maml:para> <maml:para>O powershai disponibiliza context formatters nativos. Utilize Get-Command ConvertTo-PowershaiContext* ou Get-PowershaiContextFormatters para obter a lista!</maml:para> <maml:para>Uma vez que os context formatters nativos são apenas funções powershell, você pode usar o Get-Help Nome, para obter mais detalhes.</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 da funcao powershell Use o comando Get-PowershaiContextFormatters para ver a lista</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>Atualiza o valor de um parâmetro do chat do Powershai Chat.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Atualiza o valor de um parâmetro de um Powershai Chat. Se o parâmetro não existe, um erro é retornado.</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 do parâmetro</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>Valor do parâmetro</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 que deseja atualizar. Por padrão atualiza o chat ativo</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>Forçar atualização, mesmo se o parâmetro não existe na lista de parâmetros</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>Desabilita um tool (mas não remove). Tool desabiltiada não é enviada ao 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 da tool (mesmo de Add-PowershaiChatTool) ou via pipe o resultado de 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>habilita a tool.</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>desabilita a tool.</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 informado, e tool é um nome, força o mesmo a ser tratado como 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 em qual a tool está</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>Procura a tool na lista global de Tools</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>Faz um Space do Hugging Face iniciar, caso esteja em sleeping.</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>Atualiza um evento retornado por Send-GradioApi com novos resultados do servidor e, por padrão, retorna os evenots no pipeline.</maml:para> <maml:para>Os resultados das Apis do Gradio não são gerados instantaneamente, como é na maioria dos serviços HTTP REST. O help do comando Send-GradioApi explica no detalhe como funciona o processo. Este comando deve ser usado para atualizar o objeto GradioApiEvent, retornado pelo Send-GradioApi. Este objeto representa a resposta de cada chamada que você na API, ele contém tudo o que é preciso para consultar o resultado, incluindo dados e histórico.</maml:para> <maml:para>Basicamente, este cmdlet funciona invocando o endpoint de consulta do status da invocação Api. Os parâmetros necessários para consulta estão disponíveis no próprio objeto passado no parametro -ApiEvent (que é criado e retornado pelo cmdlet Send-GradioApi)</maml:para> <maml:para>Sempre que este cmdlet executa, ele se comunica via conexão HTTP persistente com o servidor e aguarda os eventos. A medida que o servidor envia os dados, ele atualiza o objeto passado no parâmetro -ApiEvent, e, por padrão, escreve o evento retornado no pipeline.</maml:para> <maml:para>O evento retornado é um objeto do tipo GradioApiEventResult, e representa um evento gerado pela resposta da execução da API. Se o parametro -History é especificado, todos os eventos gerados ficam na propriedade events do objeto fornecido em -ApiEvent, bem como os dados retornados.</maml:para> <maml:para>Baiscamente, os eventos gerados podem enviar um hearbeat ou dados.</maml:para> <maml:para>OBJETO GradioApiEventResult num = número sequencial do evento. comeca em 1. ts = data em que o evento foi criado (data local,não do servidor). event = nome do evento data = dados retornados neste evento</maml:para> <maml:para>DADOS (DATA)</maml:para> <maml:para> Obter os dados do Gradio, é basicamente ler os eventos retornados por este cmdlet e olhar na propriedade data do GradioApiEventResult Geralmente a interface do Gradio sobrescreve o campo com o último evento recebido. Se -History for usado, além de escrever no pipeline, o cmdle vai guardar o dado no campo data, e portanto, você terá acesso ao histórico compelto do que foi gerado pelo servidor. Note que isso pode causar um consumo adicional de memória, se muitos dados forem retornados.</maml:para> <maml:para> Existe um caso "problemático" conhecido: eventualmente, o gradio pode emitir os 2 ultimos eventos com o mesmo dado (1 evento terá o nome "generating", e o ultimo será complete). Ainda não temos uma solução para separar isso de maneira segura, e por isso, o usuário deve decidir a melhor forma de conduzir. Se você usar sempre o último evento recebido, isso não é um problema. Se precisará usar todos os eventos a medida que forem sendo gerados, terá que tratar esses casos. Um exemplo simples seria comprar o conteudo, se fossem iguais, não repetir. Mas podem existir cenários onde 2 eventos com o mesm conteúdo, ainda sim, sejam eventos logicamente diferentes.</maml:para> <maml:para></maml:para> <maml:para></maml:para> <maml:para>HEARTBEAT </maml:para> <maml:para> Um dos evetnos geraods pela API do Gradio são os Heartbeats. A cada 15 segundos, o Gradio envia um evento do tipo "HeartBeat", apenas para manter a conexão ativa. Isso faz com que o cmdlet "trave", pois, como a conexão HTTP está ativa, ele fica esperando alguma resposta (que será dados, erros ou o hearbeat).</maml:para> <maml:para> Se não houver um mecanismo de contorle disso, o cmdlet iria rodar indefiniamente, sem possibilidade de cancelar nem com o CTRL + C. Para resolver isso, este cmdlet disponibiliza o parãmetro MaxHeartBeats. Este parâmetro indica quantos eventos de Hearbeat consecutivos serão tolerados antes que o cmdlet pare de tentar consultar a API. Por exemplo, considere estes dois cenários de eventos enviados pelo servidor:</maml:para> <maml:para> cenario 1: generating heartbeat generating heartbeat generating complete</maml:para> <maml:para> cenario 2: generating generating heartbeat heartbeat heartbeat complete</maml:para> <maml:para> Considerando o valor default, 2, no cenario 1, o cmdlet nunca encerraria antes do complete, pois apenas nunca houve 2 hearbeats consecutivos.</maml:para> <maml:para> Já no cenário 2, após receber 2 eventos de dados (generating), no quarto evento (hearbeat), ele encerraria, pois 2 hearbeats consecutivos foram enviados. Dizemos que o heartbeat expirou, neste caso. Neste caso, você deveria invocar novamente Update-GradioApiResult para obter o restante.</maml:para> <maml:para> Sempre que o comando encerra devido ao hearbeat expirado, ele irá atualizar o valor da propriedade LastQueryStatus para HeartBeatExpired. Com isso, você pode checar e tratar corretamente quando deve chamar novamente</maml:para> <maml:para></maml:para> <maml:para>STREAM DEvido ao fato de que a Api do Gradio já responde usando SSE (Server Side Events), é possível usar um efeito parecido com o "stream" de muitas Apis. Este cmdlet, Update-GradioApiResult, já processa os eventos do servidor usando o SSE. Adicionalmente, caso você também queria fazer algum processamento a medida que o evento se torne disponível, você pode usar o parâmetro -Script e especificar uma scriptblock, funcoes, etc. que irá ser invocado a medisa que o evento é recebido. Combianando com o parâmetro -MaxHeartBeats, você pode criar uma chamada que atualiza algo em tempo real. Por exemplo, se for uma resposta de um chatbot, pode escreve imediatamente na tela.</maml:para> <maml:para> note que esse parâmetro é chamado em sequencia com o código que checa (isto é, mesma Thread). Portanto, scripts que demorem muito, podem atrapalhar a detecção de novos eventos, e cosequentemente, a entrega dos dados.</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>Resultado de 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 que será invocado em cada evento gerado! Recebe uma hashtable com as seguintes keys: event - contém o evento gerado. event.event é o nome doe vento. event.data são os dados retornados.</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 consecutivos até o stop! Faz com que o comando aguarde apenas esse número de hearbeats consecutivos do servidor. Quando o servidor enviar essa quantiodade, o cmdlet encerra e define o LastQueryStatus do evento para 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>Não escreve o resultado para o output do 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>Guarda o historico de eventos e dados no objeto ApiEvent Note que isso fará consumir mais memória do 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>Atualiza o retorno de uma call gerado como Invoke-GradioSessionApi</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Este cmdlet segue o mesmo princípcio dos seus equivalentes em Send-GradioApi e Update-GradioApiResult. Porém ele funciona apenas para os eventos gerados em uma sessão específica. Retorna o próprio evento para que possa ser usado com outos cmdlets que deendam do evento atualizado!</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 do evento, retornado por Invoke-GradioSessionApi ou o próprio objeto retornado.</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>Não jogar o resultado de volta pro 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 hearbeats consecutivos.</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 da sessão</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>Adiciona o eventos no histórico de eventos do objeto GradioApiEvent informado em -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>Aguarda o space iniciar. Retorna $true se iniciou cmo sucesso ou $false se deu timeout!</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 por um space especifico</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>Quantos segundos, no maximo, augardar. Se null, entaoa guarda indefinidamente!</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 de espera até o próxomo chechk, em 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>dont print progress status...</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>Nao inicia, apenas faz o wait!</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> |