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.
Class Diagram
Section titled “Class Diagram”---
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
}
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. Only ‘single’ is supported; nested agent loops are not started from PromptyTool. |