FunctionTool
Represents a local function tool.
Class Diagram
Section titled “Class Diagram”---
title: FunctionTool
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class Tool {
+string name
+string kind
+string description
+Binding[] bindings
}
Tool <|-- FunctionTool
class FunctionTool {
+string kind
+PropertySchema parameters
+boolean strict
}
class PropertySchema {
+dictionary[] examples
+boolean strict
+Property[] properties
}
FunctionTool *-- PropertySchema
Yaml Example
Section titled “Yaml Example”kind: functionparameters: properties: firstName: kind: string value: Jane lastName: kind: string value: Doe question: kind: string value: What is the meaning of life?strict: trueProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| kind | string | The kind identifier for function tools |
| parameters | PropertySchema | Parameters accepted by the function tool |
| strict | boolean | Indicates whether the function tool enforces strict validation on its parameters |
Composed Types
Section titled “Composed Types”The following types are composed within FunctionTool: