Files
docker-agent/examples/script_shell.yaml
T
David Gageot 20b25b3da9 remove shebang lines from example configs
Remove the leading '#!/usr/bin/env docker agent run' shebang and
following blank line from all example YAML and HCL files, as the
config format is now self-documenting.
2026-05-20 16:26:18 +02:00

35 lines
1013 B
YAML

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