Skip to content

FunctionTool

Represents a local function tool.

---
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
kind: function
parameters:
properties:
firstName:
kind: string
value: Jane
lastName:
kind: string
value: Doe
question:
kind: string
value: What is the meaning of life?
strict: true
NameTypeDescription
kindstringThe kind identifier for function tools
parametersPropertySchemaParameters accepted by the function tool
strictbooleanIndicates whether the function tool enforces strict validation on its parameters

The following types are composed within FunctionTool: