Guides
Steer tool choice
Get the chat agent to call your digest plan for release questions by describing the plan and giving it exemplars.
See what the agent calls
This digest plan gathers the commits since the latest release, but its description doesn't say so:
version: 2
identifier: digest
name: Digest
description: Team digest.
steps:
- id: release
tool_name: github__tool__gh_release
input: {}
- id: commits
tool_name: github__tool__git_log
input:
base: '{{release.tag}}'
head: HEAD
finish:
output:
since: '{{release.tag}}'
commits: '{{commits.commits}}'Ask a question the plan answers:
dive ask "What have we merged since we last shipped?"chat skips the plan and makes the same calls itself:
→ github__tool__gh_release {}
✓ github__tool__gh_release 1.1s
→ github__tool__git_log {"base":"v0.21.0","head":"HEAD"}
✓ github__tool__git_log 72.9msDescribe the plan and add exemplars
Say what the plan returns in description, and list questions it answers under exemplars. The agent reads both in the plan's tool description:
description: Team digest. The commits merged since the latest GitHub release.
exemplars:
- What have we merged since the last release?
- What's unreleased?Ask again
dive ask "What have we merged since we last shipped?"chat now calls the plan:
→ plan__digest {}
→ github__tool__gh_release {}
✓ github__tool__gh_release 995.2ms
→ github__tool__git_log {"base":"v0.21.0","head":"HEAD"}
✓ github__tool__git_log 50.5ms
✓ plan__digest 1.0s