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
        +Property[] parameters
        +boolean strict
    }
kind: function
parameters:
firstName:
kind: string
default: Jane
lastName:
kind: string
default: Doe
question:
kind: string
default: What is the meaning of life?
strict: true
NameTypeDescription
kindstringThe kind identifier for function tools
parametersProperty[]Parameters accepted by the function tool
strictbooleanIndicates whether the function tool enforces strict validation on its parameters