Struct

Struct represents a structured data value, consisting of fields which map to dynamically typed values.

JSON representation
{
  "fields": [
    {
      object (Field)
    }
  ]
}
Fields
fields[]

object (Field)

Dynamically typed fields. List instead of map because LLMs are sensitive to ordering, and we want to give users full control.

Field

Represents a single field in a struct.

JSON representation
{
  "name": string,
  "value": {
    object (Value)
  }
}
Fields
name

string

value

object (Value)