-
Notifications
You must be signed in to change notification settings - Fork 222
Expand file tree
/
Copy pathpowershell-context.yaml
More file actions
41 lines (38 loc) · 1.66 KB
/
powershell-context.yaml
File metadata and controls
41 lines (38 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
type: code-engine
config:
model-config:
engine: "code-cushman-001"
temperature: 0
max_tokens: 1024
shell: "powershell"
multi_turn: "off"
token_count: 110
comment-operator: "#"
description-comment-operator: "##"
description: "This converts Natural Language Commands to Command Line Commands. Here are some examples"
examples:
- input: "what processes are hogging the most cpu?"
response: "Get-Process | Sort-Object -Property CPU -Descending | Select-Object -First 10"
- input: "stop the chrome processes"
response: "Get-Process chrome | Stop-Process"
- input: "what's my IP address?"
response: '(Invoke-WebRequest -uri "http://ifconfig.me/ip").Content"'
- input: "what's the weather in New York?"
response: '(Invoke-WebRequest -uri "wttr.in/NewYork").Content'
- input: "make a git ignore with node modules and src in it"
response: |
"node_modules"
src" | Out-File .gitignore
- input: "open it in notepad"
response: "notepad .gitignore"
- input: "what's running on port 1018?"
response: "Get-Process -Id (Get-NetTCPConnection -LocalPort 1018).OwningProcess"
- input: "kill process 1584"
response: "Stop-Process -Id 1584"
- input: "what other devices are on my network?"
response: "Get-NetIPAddress | Format-Table"
- input: "how much storage is left on my pc?"
response: "Get-WmiObject -Class Win32_LogicalDisk | Select-Object -Property DeviceID,FreeSpace,Size,DriveType | Format-Table -AutoSize"
- input: "how many GB is 367247884288 B?"
response: "(367247884288 / 1GB)"
flow-reset-text: "Ignore the previous examples and start afresh, from here on out, this is an unrelated conversation"