Dive

Tool file

prompt tools

One model call.

One model call. The result is {text}, or validated JSON when output_schema is set.

These fields go alongside the common fields, with kind: prompt.

Fields

promptstringrequired

The message to send, as a template over {{input.*}}.

systemstring

A fixed system prompt.

modelstringdefault: chat

The model role that runs the call, standard or custom.

caller_output_schemabooleandefault: false

Take output_schema from the call's input.

caller_modelbooleandefault: false

Let the call's model input pick the role.

caller_systembooleandefault: false

Take system from the call's input.

version: 3
name: summarize
description: Summarizes text into a gist and three keywords.
kind: prompt
prompt: 'Summarize into one sentence and three keywords: {{input.text}}'
model: chat
input_schema:
  type: object
  required:
  - text
  properties:
    text:
      type: string
      description: The text to summarize
output_schema:
  type: object
  required:
  - gist
  - keywords
  properties:
    gist:
      type: string
    keywords:
      type: array
      items:
        type: string