-
Notifications
You must be signed in to change notification settings - Fork 305
Expand file tree
/
Copy pathscript_shell.yaml
More file actions
36 lines (32 loc) · 1.02 KB
/
script_shell.yaml
File metadata and controls
36 lines (32 loc) · 1.02 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
#!/usr/bin/env docker agent run
agents:
root:
model: gpt
description: An agent with custom shell commands
instruction: You are a helpful assistant with access to custom shell tools.
toolsets:
- type: script
shell:
get_ip:
cmd: "curl -s https://ipinfo.io | jq -r .ip"
description: "Get public IP"
docker_images:
cmd: "docker images $img"
description: List running Docker containers
args:
img:
description: Docker image to list
type: string
github_user_repos:
cmd: "curl -s https://api.github.com/users/$username/repos | jq '.[].name'"
description: List GitHub repositories of the provided user
required: ["username"]
args:
username:
description: GitHub username to get the repository list for
type: string
models:
gpt:
provider: openai
model: gpt-4o
max_tokens: 1500