mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
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.
35 lines
1013 B
YAML
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
|