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.
Class Diagram
Section titled “Class Diagram”---
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
}
Yaml Example
Section titled “Yaml Example”kind: promptypath: ./summarize.promptymode: singleProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| kind | string | The kind identifier for prompty tools |
| path | string | Path to the child .prompty file, relative to the parent |
| mode | string | Execution mode: ‘single’ for one LLM call, ‘agentic’ for full agent loop |