-
Notifications
You must be signed in to change notification settings - Fork 307
Closed
Labels
kind/bugSomething isn't workingSomething isn't working
Description
Describe the bug
Script tool args with type: number are interpolated using %s verb, producing %!s(float64=42) instead of 42 in shell commands.
Version affected
docker-agent version v1.33.0
How To Reproduce
# agent.yml
agents:
root:
model: sonnet
description: Minimal reproducer for number arg interpolation bug
instruction: |
Run echo_number with num set to 42.
toolsets:
- type: script
shell:
echo_number:
cmd: echo "$num"
description: Echoes a number
args:
num:
type: number
description: A number
required: [num]
commands:
run: Run echo_number with num=$1.
models:
sonnet:
provider: anthropic
model: claude-sonnet-4-5$ docker agent run --yolo --exec ./agent.yml 42
--- Agent: root ---
Calling echo_number(num: 42)
echo_number response → "%!s(float64=42)\n"Additional context
Workaround: use type: string
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working