Components
ToolDefinition
A tool that can be called from an LLM during the conversation.
Example Usage
Fields
Field | Type | Required | Description |
---|---|---|---|
type | components.Type | FALSE | The action to take when the LLM calls the tool. |
tool | components.InternalTool | TRUE | A tool definition to be used by the OpenAI API. |
endpoint | components.ToolHttpEndpoint | 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. |