Defines the properties of a parameter. Used to define parameters used in the agent and the input / output parameters for each fulfillment.
JSON representation |
---|
{ "name": string, "type": enum ( |
Fields | |
---|---|
name |
Required. Name of parameter. |
type |
Type of parameter. |
typeSchema |
Optional. Type schema of parameter. |
description |
Human-readable description of the parameter. Limited to 300 characters. |
ParameterType
Parameter types are used for validation. These types are consistent with google.protobuf.Value
.
Enums | |
---|---|
PARAMETER_TYPE_UNSPECIFIED | Not specified. No validation will be performed. |
STRING | Represents any string value. |
NUMBER | Represents any number value. |
BOOLEAN | Represents a boolean value. |
NULL | Represents a null value. |
OBJECT | Represents any object value. |
LIST | Represents a repeated value. |
TypeSchema
Encapsulates different type schema variations: either a reference to an a schema that's already defined by a tool, or an inline definition.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field schema . The encapsulated schema. schema can be only one of the following: | |
inlineSchema |
Set if this is an inline schema definition. |
schemaReference |
Set if this is a schema reference. |
InlineSchema
A type schema object that's specified inline.
JSON representation |
---|
{ "type": enum ( |
Fields | |
---|---|
type |
Data type of the schema. |
items |
Schema of the elements if this is an ARRAY type. |
DataType
Defines data types that are supported for inlined schemas. These types are consistent with google.protobuf.Value
.
Enums | |
---|---|
DATA_TYPE_UNSPECIFIED | Not specified. |
STRING | Represents any string value. |
NUMBER | Represents any number value. |
BOOLEAN | Represents a boolean value. |
ARRAY | Represents a repeated value. |
SchemaReference
A reference to the schema of an existing tool.
JSON representation |
---|
{ "tool": string, "schema": string } |
Fields | |
---|---|
tool |
The tool that contains this schema definition. Format: |
schema |
The name of the schema. |