Function

data class Function

Represents a function for use by ChatGPT in a chat completion. A function is just like an API endpoint. ChatGPT will call the endpoint with parameters, and expect you, the developer, to respond with information.

This can be used to get the weather, get stock prices, set values in a database, etc. For more information and examples, check out the openai cookbook.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A description of the function

Link copied to clipboard

The name of the function

Link copied to clipboard

Which parameters can ChatGPT pass to the function