Files
docker-agent/examples/transform_json.yaml
T

18 lines
610 B
YAML

agents:
root:
model: openai/gpt-4.1
description: Retrieve compact Pokémon facts with a native JSON response transform.
instruction: Retrieve Pokémon facts using the catalog tool; failed evidence requires review.
toolsets:
- type: openapi
url: https://raw.githubusercontent.com/PokeAPI/pokeapi/master/openapi.yml
tools: [pokemon_retrieve]
max_output_bytes: 0
hooks:
tool_response_transform:
- matcher: pokemon_retrieve
hooks:
- type: builtin
command: transform_json
args: [name, types, stats]