Components
SDKToolDefinition
Example Usage
Fields
Field | Type | Required | Description |
---|---|---|---|
type | components.Type | FALSE | The action to take when GPT calls the tool. |
tool | components.SDKInternalTool | TRUE | A tool definition to be used by the OpenAI API. |
endpoint | components.HttpEndpoint | FALSE | The configuration for an HTTP API call. |
defaults | components.Defaults | FALSE | The default values for the parameters of the function/tool call. |
result | components.Result | FALSE | The optional result of the tool call. Only used for context tools. |