Google Gemini · Schema

Part

A datatype containing media that is part of a multi-part Content message. A Part consists of data which has an associated datatype. A Part can only contain one of the accepted types in its corresponding field.

Agentic AIArtificial IntelligenceCode GenerationEmbeddingsGenerative AIImage-GenerationLLMMachine-LearningMulti-Modal

Properties

Name Type Description
text string Inline text.
inlineData object
fileData object
functionCall object
functionResponse object
View JSON Schema on GitHub

JSON Schema

google-gemini-part-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Part",
  "title": "Part",
  "type": "object",
  "description": "A datatype containing media that is part of a multi-part Content message. A Part consists of data which has an associated datatype. A Part can only contain one of the accepted types in its corresponding field.",
  "properties": {
    "text": {
      "type": "string",
      "description": "Inline text."
    },
    "inlineData": {
      "$ref": "#/components/schemas/Blob"
    },
    "fileData": {
      "$ref": "#/components/schemas/FileData"
    },
    "functionCall": {
      "$ref": "#/components/schemas/FunctionCall"
    },
    "functionResponse": {
      "$ref": "#/components/schemas/FunctionResponse"
    }
  }
}