Files
David Gageot ad68f57e89 feat: add random toolset for agent-chosen integer draws
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>
2026-10-08 08:46:40 +02:00

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