Tool file
decision tools
Asks a decision model typed questions about the same state, each answered independently.
Asks a decision model typed questions about the same state, each answered independently. The result maps each question name to its answer.
These fields go alongside the common fields, with kind: decision.
Fields
stateany
The data to judge, as a template tree over {{input.*}}. Omitted, the call's state input is used.
questionsobject
Question name to question. Each has a type (likelihood, choice or score), instructions, and criteria for that type.
A decision model role. A chat role fails the call.
Take questions from the call's input instead.
Let the call's model input pick the role.
version: 3
name: triage
description: Routes a support ticket and checks whether it is urgent.
kind: decision
model: decider
state:
ticket: '{{input.ticket}}'
questions:
team:
type: choice
instructions: Which team should handle this ticket?
criteria:
billing: Payments
technical: Bugs
urgent:
type: likelihood
instructions: Does the ticket convey urgency?
input_schema:
type: object
required:
- ticket
properties:
ticket:
type: string
description: The ticket text