Example

Here’s how an API payload gets converted into a function schema:

  1. Original API Payload:
Zipcode API payload
{
	"check": "123333"
}
  1. Generated Schema for LLM:
Payload sent to the model while making requests
{
	"type": "function",
	"function": {
		"parameters": {
			"type": "object",
			"properties": {
				"check": {
					"type": "string"
				}
			}
		},
		"name": "clt473gri0006yzrl26rz79iu", // This is the ID of the function.
		"description": "This function accepts a zipcode and returns the corresponding location information" // This is the description of the function.
	}
}