Example Usage

import { SDKToolDefinition } from "syllable-sdk/models/components";

let value: SDKToolDefinition = {
  tool: {
    function: {
      name: "<value>",
      description: "eek where kindly materialise antique failing hence",
      parameters: {},
    },
  },
};

Fields

FieldTypeRequiredDescription
typecomponents.TypeFALSEThe action to take when GPT calls the tool.
toolcomponents.SDKInternalToolTRUEA tool definition to be used by the OpenAI API.
endpointcomponents.HttpEndpointFALSEThe configuration for an HTTP API call.
defaultscomponents.DefaultsFALSEThe default values for the parameters of the function/tool call.
resultcomponents.ResultFALSEThe optional result of the tool call. Only used for context tools.