Dive

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

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.

modelstringdefault: decider

A decision model role. A chat role fails the call.

caller_questionsbooleandefault: false

Take questions from the call's input instead.

caller_modelbooleandefault: false

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