Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 2.38 KB

generative-ai.functiondeclarationschemaproperty.md

File metadata and controls

28 lines (20 loc) · 2.38 KB

Home > @google/generative-ai > FunctionDeclarationSchemaProperty

FunctionDeclarationSchemaProperty interface

Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.

Signature:

export interface FunctionDeclarationSchemaProperty 

Properties

Property Modifiers Type Description
description? string (Optional) Optional. The description of the property.
enum? string[] (Optional) Optional. The enum of the property.
example? unknown (Optional) Optional. The example of the property.
format? string (Optional) Optional. The format of the property.
items? FunctionDeclarationSchema (Optional) Optional. The items of the property. FunctionDeclarationSchema
nullable? boolean (Optional) Optional. Whether the property is nullable.
properties? { [k: string]: FunctionDeclarationSchema; } (Optional) Optional. Map of FunctionDeclarationSchema.
required? string[] (Optional) Optional. Array of required property.
type? FunctionDeclarationSchemaType (Optional) Optional. The type of the property. FunctionDeclarationSchemaType.