Skip to content

PromptyTool

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

The child prompty is executed as a single prompt invocation. Nested agent loops are intentionally not started from PromptyTool.

---
title: PromptyTool
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class Tool {
      <<abstract>>
        +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. Only ‘single’ is supported; nested agent loops are not started from PromptyTool.