mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 18:30:09 +00:00
Adds a random toolset so agents can draw integers within inclusive int64 bounds, with input validation, catalog/toolset registrations, docs and examples. Successful draws are exempt from the duplicate-call loop detector so repeated legitimate draws aren't flagged. Includes regression tests and WASM toolset coverage. Signed-off-by: David Gageot <david.gageot@docker.com>
13 lines
492 B
YAML
13 lines
492 B
YAML
# The agent chooses both inclusive bounds on each random_int call.
|
|
agents:
|
|
root:
|
|
model: openai/gpt-5-mini
|
|
description: Assistant that rolls dice and makes random choices
|
|
instruction: |
|
|
Use random_int for dice rolls and random choices instead of inventing
|
|
random numbers. Choose min and max to match the request: for a
|
|
six-sided die, use min=1 and max=6; for a coin flip, use min=0 and max=1.
|
|
Both bounds are inclusive.
|
|
toolsets:
|
|
- type: random
|