| z_object | R Documentation |
Create a JSON Schema for object type. This is the primary schema builder for defining tool parameters.
z_object(
...,
.description = NULL,
.required = NULL,
.additional_properties = FALSE
)
... |
Named arguments where names are property names and values are z_schema objects created by z_* functions. |
.description |
Optional description of the object. |
.required |
Character vector of required field names. If NULL (default), all fields are considered required. |
.additional_properties |
Whether to allow additional properties. Default FALSE. |
A list representing JSON Schema for object.
z_object(
location = z_string(description = "City name, e.g., Beijing"),
unit = z_enum(c("celsius", "fahrenheit"), description = "Temperature unit")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.