Skip to content

PromptyTool

A tool that references another .prompty file to be invoked as a tool.

In single mode, the child prompty is executed with a single LLM call. In agentic mode, the child prompty runs a full agent loop with its own tools.

---
title: PromptyTool
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class Tool {
        +string name
        +string kind
        +string description
        +Binding[] bindings
    }
    Tool <|-- PromptyTool
    class PromptyTool {
      
        +string kind
        +string path
        +string mode
    }
kind: prompty
path: ./summarize.prompty
mode: single
NameTypeDescription
kindstringThe kind identifier for prompty tools
pathstringPath to the child .prompty file, relative to the parent
modestringExecution mode: ‘single’ for one LLM call, ‘agentic’ for full agent loop