স্ট্রাকচার্ড আউটপুট

আপনি প্রদত্ত JSON স্কিমা মেনে প্রতিক্রিয়া তৈরি করার জন্য জেমিনি মডেলগুলি কনফিগার করতে পারেন। এটি অনুমানযোগ্য, টাইপ-সেফ ফলাফল নিশ্চিত করে এবং অসংগঠিত টেক্সট থেকে সংগঠিত ডেটা নিষ্কাশনকে সহজ করে তোলে।

কাঠামোগত আউটপুট ব্যবহার করা নিম্নলিখিত ক্ষেত্রে আদর্শ:

  • ডেটা নিষ্কাশন: টেক্সট থেকে নাম এবং তারিখের মতো নির্দিষ্ট তথ্য বের করা।
  • কাঠামোগত শ্রেণিবিন্যাস: পাঠ্যকে পূর্বনির্ধারিত বিভাগগুলিতে শ্রেণিবদ্ধ করুন।
  • এজেন্টিক ওয়ার্কফ্লো: টুল বা এপিআই-এর জন্য কাঠামোগত ইনপুট তৈরি করুন।

REST API-তে JSON স্কিমা সমর্থন করার পাশাপাশি, Google GenAI SDK-গুলো Pydantic (Python) এবং Zod (JavaScript) ব্যবহার করে স্কিমা সংজ্ঞায়িত করা সহজ করে তোলে।

এই উদাহরণটি দেখায় কিভাবে object , array , string এবং integer মতো মৌলিক JSON স্কিমা টাইপ ব্যবহার করে টেক্সট থেকে কাঠামোগত ডেটা বের করা যায়।

পাইথন

from google import genai
from pydantic import BaseModel, Field
from typing import List, Optional

class Ingredient(BaseModel):
    name: str = Field(description="Name of the ingredient.")
    quantity: str = Field(description="Quantity of the ingredient, including units.")

class Recipe(BaseModel):
    recipe_name: str = Field(description="The name of the recipe.")
    prep_time_minutes: Optional[int] = Field(description="Optional time in minutes to prepare the recipe.")
    ingredients: List[Ingredient]
    instructions: List[str]

client = genai.Client()

prompt = """
Please extract the recipe from the following text.
The user wants to make delicious chocolate chip cookies.
They need 2 and 1/4 cups of all-purpose flour, 1 teaspoon of baking soda,
1 teaspoon of salt, 1 cup of unsalted butter (softened), 3/4 cup of granulated sugar,
3/4 cup of packed brown sugar, 1 teaspoon of vanilla extract, and 2 large eggs.
For the best part, they'll need 2 cups of semisweet chocolate chips.
First, preheat the oven to 375°F (190°C). Then, in a small bowl, whisk together the flour,
baking soda, and salt. In a large bowl, cream together the butter, granulated sugar, and brown sugar
until light and fluffy. Beat in the vanilla and eggs, one at a time. Gradually beat in the dry
ingredients until just combined. Finally, stir in the chocolate chips. Drop by rounded tablespoons
onto ungreased baking sheets and bake for 9 to 11 minutes.
"""

response = client.models.generate_content(
    model="gemini-3-flash-preview",
    contents=prompt,
    config={
        "response_mime_type": "application/json",
        "response_json_schema": Recipe.model_json_schema(),
    },
)

recipe = Recipe.model_validate_json(response.text)
print(recipe)

জাভাস্ক্রিপ্ট

import { GoogleGenAI } from "@google/genai";
import { z } from "zod";
import { zodToJsonSchema } from "zod-to-json-schema";

const ingredientSchema = z.object({
  name: z.string().describe("Name of the ingredient."),
  quantity: z.string().describe("Quantity of the ingredient, including units."),
});

const recipeSchema = z.object({
  recipe_name: z.string().describe("The name of the recipe."),
  prep_time_minutes: z.number().optional().describe("Optional time in minutes to prepare the recipe."),
  ingredients: z.array(ingredientSchema),
  instructions: z.array(z.string()),
});

const ai = new GoogleGenAI({});

const prompt = `
Please extract the recipe from the following text.
The user wants to make delicious chocolate chip cookies.
They need 2 and 1/4 cups of all-purpose flour, 1 teaspoon of baking soda,
1 teaspoon of salt, 1 cup of unsalted butter (softened), 3/4 cup of granulated sugar,
3/4 cup of packed brown sugar, 1 teaspoon of vanilla extract, and 2 large eggs.
For the best part, they'll need 2 cups of semisweet chocolate chips.
First, preheat the oven to 375°F (190°C). Then, in a small bowl, whisk together the flour,
baking soda, and salt. In a large bowl, cream together the butter, granulated sugar, and brown sugar
until light and fluffy. Beat in the vanilla and eggs, one at a time. Gradually beat in the dry
ingredients until just combined. Finally, stir in the chocolate chips. Drop by rounded tablespoons
onto ungreased baking sheets and bake for 9 to 11 minutes.
`;

const response = await ai.models.generateContent({
  model: "gemini-3-flash-preview",
  contents: prompt,
  config: {
    responseMimeType: "application/json",
    responseJsonSchema: zodToJsonSchema(recipeSchema),
  },
});

const recipe = recipeSchema.parse(JSON.parse(response.text));
console.log(recipe);

যান

package main

import (
    "context"
    "fmt"
    "log"

    "google.golang.org/genai"
)

func main() {
    ctx := context.Background()
    client, err := genai.NewClient(ctx, nil)
    if err != nil {
        log.Fatal(err)
    }

    prompt := `
  Please extract the recipe from the following text.
  The user wants to make delicious chocolate chip cookies.
  They need 2 and 1/4 cups of all-purpose flour, 1 teaspoon of baking soda,
  1 teaspoon of salt, 1 cup of unsalted butter (softened), 3/4 cup of granulated sugar,
  3/4 cup of packed brown sugar, 1 teaspoon of vanilla extract, and 2 large eggs.
  For the best part, they'll need 2 cups of semisweet chocolate chips.
  First, preheat the oven to 375°F (190°C). Then, in a small bowl, whisk together the flour,
  baking soda, and salt. In a large bowl, cream together the butter, granulated sugar, and brown sugar
  until light and fluffy. Beat in the vanilla and eggs, one at a time. Gradually beat in the dry
  ingredients until just combined. Finally, stir in the chocolate chips. Drop by rounded tablespoons
  onto ungreased baking sheets and bake for 9 to 11 minutes.
  `
    config := &genai.GenerateContentConfig{
        ResponseMIMEType: "application/json",
        ResponseJsonSchema: map[string]any{
            "type": "object",
            "properties": map[string]any{
                "recipe_name": map[string]any{
                    "type":        "string",
                    "description": "The name of the recipe.",
                },
                "prep_time_minutes": map[string]any{
                    "type":        "integer",
                    "description": "Optional time in minutes to prepare the recipe.",
                },
                "ingredients": map[string]any{
                    "type": "array",
                    "items": map[string]any{
                        "type": "object",
                        "properties": map[string]any{
                            "name": map[string]any{
                                "type":        "string",
                                "description": "Name of the ingredient.",
                            },
                            "quantity": map[string]any{
                                "type":        "string",
                                "description": "Quantity of the ingredient, including units.",
                            },
                        },
                        "required": []string{"name", "quantity"},
                    },
                },
                "instructions": map[string]any{
                    "type":  "array",
                    "items": map[string]any{"type": "string"},
                },
            },
            "required": []string{"recipe_name", "ingredients", "instructions"},
        },
    }

    result, err := client.Models.GenerateContent(
        ctx,
        "gemini-3-flash-preview",
        genai.Text(prompt),
        config,
    )
    if err != nil {
        log.Fatal(err)
    }
    fmt.Println(result.Text())
}

বিশ্রাম

curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-preview:generateContent" \
    -H "x-goog-api-key: $GEMINI_API_KEY" \
    -H 'Content-Type: application/json' \
    -X POST \
    -d '{
      "contents": [{
        "parts":[
          { "text": "Please extract the recipe from the following text.\nThe user wants to make delicious chocolate chip cookies.\nThey need 2 and 1/4 cups of all-purpose flour, 1 teaspoon of baking soda,\n1 teaspoon of salt, 1 cup of unsalted butter (softened), 3/4 cup of granulated sugar,\n3/4 cup of packed brown sugar, 1 teaspoon of vanilla extract, and 2 large eggs.\nFor the best part, they will need 2 cups of semisweet chocolate chips.\nFirst, preheat the oven to 375°F (190°C). Then, in a small bowl, whisk together the flour,\nbaking soda, and salt. In a large bowl, cream together the butter, granulated sugar, and brown sugar\nuntil light and fluffy. Beat in the vanilla and eggs, one at a time. Gradually beat in the dry\ningredients until just combined. Finally, stir in the chocolate chips. Drop by rounded tablespoons\nonto ungreased baking sheets and bake for 9 to 11 minutes." }
        ]
      }],
      "generationConfig": {
        "responseMimeType": "application/json",
        "responseJsonSchema": {
          "type": "object",
          "properties": {
            "recipe_name": {
              "type": "string",
              "description": "The name of the recipe."
            },
            "prep_time_minutes": {
                "type": "integer",
                "description": "Optional time in minutes to prepare the recipe."
            },
            "ingredients": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": { "type": "string", "description": "Name of the ingredient."},
                  "quantity": { "type": "string", "description": "Quantity of the ingredient, including units."}
                },
                "required": ["name", "quantity"]
              }
            },
            "instructions": {
              "type": "array",
              "items": { "type": "string" }
            }
          },
          "required": ["recipe_name", "ingredients", "instructions"]
        }
      }
    }'

উদাহরণ উত্তর:

{
  "recipe_name": "Delicious Chocolate Chip Cookies",
  "ingredients": [
    {
      "name": "all-purpose flour",
      "quantity": "2 and 1/4 cups"
    },
    {
      "name": "baking soda",
      "quantity": "1 teaspoon"
    },
    {
      "name": "salt",
      "quantity": "1 teaspoon"
    },
    {
      "name": "unsalted butter (softened)",
      "quantity": "1 cup"
    },
    {
      "name": "granulated sugar",
      "quantity": "3/4 cup"
    },
    {
      "name": "packed brown sugar",
      "quantity": "3/4 cup"
    },
    {
      "name": "vanilla extract",
      "quantity": "1 teaspoon"
    },
    {
      "name": "large eggs",
      "quantity": "2"
    },
    {
      "name": "semisweet chocolate chips",
      "quantity": "2 cups"
    }
  ],
  "instructions": [
    "Preheat the oven to 375°F (190°C).",
    "In a small bowl, whisk together the flour, baking soda, and salt.",
    "In a large bowl, cream together the butter, granulated sugar, and brown sugar until light and fluffy.",
    "Beat in the vanilla and eggs, one at a time.",
    "Gradually beat in the dry ingredients until just combined.",
    "Stir in the chocolate chips.",
    "Drop by rounded tablespoons onto ungreased baking sheets and bake for 9 to 11 minutes."
  ]
}

স্ট্রিমিং

আপনি স্ট্রাকচার্ড আউটপুট স্ট্রিম করতে পারেন, যার ফলে সম্পূর্ণ আউটপুটটি তৈরি হওয়ার জন্য অপেক্ষা না করেই, রেসপন্সটি তৈরি হওয়ার সাথে সাথেই সেটির প্রসেসিং শুরু করা যায়। এটি আপনার অ্যাপ্লিকেশনের অনুভূত পারফরম্যান্স উন্নত করতে পারে।

স্ট্রিম করা খণ্ডগুলো বৈধ আংশিক JSON স্ট্রিং হবে, যেগুলোকে সংযুক্ত করে চূড়ান্ত ও সম্পূর্ণ JSON অবজেক্টটি তৈরি করা যাবে।

পাইথন

from google import genai
from pydantic import BaseModel, Field
from typing import Literal

class Feedback(BaseModel):
    sentiment: Literal["positive", "neutral", "negative"]
    summary: str

client = genai.Client()
prompt = "The new UI is incredibly intuitive and visually appealing. Great job. Add a very long summary to test streaming!"

response_stream = client.models.generate_content_stream(
    model="gemini-3-flash-preview",
    contents=prompt,
    config={
        "response_mime_type": "application/json",
        "response_json_schema": Feedback.model_json_schema(),
    },
)

for chunk in response_stream:
    print(chunk.candidates[0].content.parts[0].text)

জাভাস্ক্রিপ্ট

import { GoogleGenAI } from "@google/genai";
import { z } from "zod";
import { zodToJsonSchema } from "zod-to-json-schema";

const ai = new GoogleGenAI({});
const prompt = "The new UI is incredibly intuitive and visually appealing. Great job! Add a very long summary to test streaming!";

const feedbackSchema = z.object({
  sentiment: z.enum(["positive", "neutral", "negative"]),
  summary: z.string(),
});

const stream = await ai.models.generateContentStream({
  model: "gemini-3-flash-preview",
  contents: prompt,
  config: {
    responseMimeType: "application/json",
    responseJsonSchema: zodToJsonSchema(feedbackSchema),
  },
});

for await (const chunk of stream) {
  console.log(chunk.candidates[0].content.parts[0].text)
}

সরঞ্জাম সহ কাঠামোগত আউটপুট

জেমিনি ৩ আপনাকে স্ট্রাকচার্ড আউটপুট-এর সাথে বিল্ট-ইন টুলগুলো একত্রিত করার সুযোগ দেয়, যার মধ্যে রয়েছে গুগল সার্চের মাধ্যমে গ্রাউন্ডিং , ইউআরএল কনটেক্সট , কোড এক্সিকিউশন , ফাইল সার্চ এবং ফাংশন কলিং

পাইথন

from google import genai
from pydantic import BaseModel, Field
from typing import List

class MatchResult(BaseModel):
    winner: str = Field(description="The name of the winner.")
    final_match_score: str = Field(description="The final match score.")
    scorers: List[str] = Field(description="The name of the scorer.")

client = genai.Client()

response = client.models.generate_content(
    model="gemini-3.1-pro-preview",
    contents="Search for all details for the latest Euro.",
    config={
        "tools": [
            {"google_search": {}},
            {"url_context": {}}
        ],
        "response_mime_type": "application/json",
        "response_json_schema": MatchResult.model_json_schema(),
    },  
)

result = MatchResult.model_validate_json(response.text)
print(result)

জাভাস্ক্রিপ্ট

import { GoogleGenAI } from "@google/genai";
import { z } from "zod";
import { zodToJsonSchema } from "zod-to-json-schema";

const ai = new GoogleGenAI({});

const matchSchema = z.object({
  winner: z.string().describe("The name of the winner."),
  final_match_score: z.string().describe("The final score."),
  scorers: z.array(z.string()).describe("The name of the scorer.")
});

async function run() {
  const response = await ai.models.generateContent({
    model: "gemini-3.1-pro-preview",
    contents: "Search for all details for the latest Euro.",
    config: {
      tools: [
        { googleSearch: {} },
        { urlContext: {} }
      ],
      responseMimeType: "application/json",
      responseJsonSchema: zodToJsonSchema(matchSchema),
    },
  });

  const match = matchSchema.parse(JSON.parse(response.text));
  console.log(match);
}

run();

বিশ্রাম

curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-pro-preview:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H 'Content-Type: application/json' \
  -X POST \
  -d '{
    "contents": [{
      "parts": [{"text": "Search for all details for the latest Euro."}]
    }],
    "tools": [
      {"googleSearch": {}},
      {"urlContext": {}}
    ],
    "generationConfig": {
        "responseMimeType": "application/json",
        "responseJsonSchema": {
            "type": "object",
            "properties": {
                "winner": {"type": "string", "description": "The name of the winner."},
                "final_match_score": {"type": "string", "description": "The final score."},
                "scorers": {
                    "type": "array",
                    "items": {"type": "string"},
                    "description": "The name of the scorer."
                }
            },
            "required": ["winner", "final_match_score", "scorers"]
        }
    }
  }'

JSON স্কিমা সমর্থন

একটি JSON অবজেক্ট তৈরি করতে, জেনারেশন কনফিগারেশনে response_mime_type কে application/json এ সেট করুন এবং একটি response_json_schema প্রদান করুন। স্কিমাটি অবশ্যই একটি বৈধ JSON স্কিমা হতে হবে যা কাঙ্ক্ষিত আউটপুট ফরম্যাট বর্ণনা করে।

এরপর মডেলটি প্রদত্ত স্কিমার সাথে মেলে এমন একটি সিনট্যাক্টিকভাবে বৈধ JSON স্ট্রিং তৈরি করবে। স্ট্রাকচার্ড আউটপুট ব্যবহার করার সময়, মডেলটি স্কিমার কী-গুলোর ক্রমানুসারেই আউটপুট তৈরি করবে।

জেমিনির স্ট্রাকচার্ড আউটপুট মোড JSON স্কিমা স্পেসিফিকেশনের একটি উপসেট সমর্থন করে।

নিম্নলিখিত type মানগুলি সমর্থিত:

  • string : টেক্সটের জন্য।
  • number : ফ্লোটিং-পয়েন্ট সংখ্যার জন্য।
  • integer : অখণ্ড সংখ্যার জন্য।
  • boolean : সত্য/মিথ্যা মানের জন্য।
  • object : কী-ভ্যালু জোড়যুক্ত কাঠামোগত ডেটার জন্য।
  • array : আইটেমের তালিকার জন্য।
  • null : কোনো প্রপার্টিকে null হওয়ার অনুমতি দিতে, type অ্যারেতে "null" অন্তর্ভুক্ত করুন (যেমন, {"type": ["string", "null"]} )।

এই বর্ণনামূলক বৈশিষ্ট্যগুলো মডেলটিকে পথনির্দেশনা দিতে সাহায্য করে:

  • title : কোনো সম্পত্তির সংক্ষিপ্ত বিবরণ।
  • description : কোনো সম্পত্তির একটি দীর্ঘতর ও অধিকতর বিশদ বিবরণ।

প্রকার-নির্দিষ্ট বৈশিষ্ট্য

object মানগুলির জন্য:

  • properties : এমন একটি অবজেক্ট যেখানে প্রতিটি কী হলো একটি প্রোপার্টির নাম এবং প্রতিটি ভ্যালু হলো সেই প্রোপার্টির স্কিমা।
  • required : স্ট্রিংগুলির একটি অ্যারে, যেখানে কোন প্রপার্টিগুলি বাধ্যতামূলক তার তালিকা থাকবে।
  • additionalProperties : properties এ তালিকাভুক্ত নয় এমন প্রপার্টি অনুমোদিত হবে কিনা তা নিয়ন্ত্রণ করে। এটি একটি বুলিয়ান বা স্কিমা হতে পারে।

string মানের জন্য:

  • enum : শ্রেণিবিন্যাস কাজের জন্য সম্ভাব্য স্ট্রিংগুলির একটি নির্দিষ্ট সেট তালিকাভুক্ত করে।
  • format : স্ট্রিংটির জন্য একটি সিনট্যাক্স নির্দিষ্ট করে, যেমন date-time , date , time

number এবং integer মানের জন্য:

  • enum : সম্ভাব্য সাংখ্যিক মানগুলির একটি নির্দিষ্ট সেট তালিকাভুক্ত করে।
  • minimum : সর্বনিম্ন অন্তর্ভুক্ত মান।
  • maximum : সর্বোচ্চ অন্তর্ভুক্ত মান।

array মানগুলির জন্য:

  • items : অ্যারের অন্তর্ভুক্ত সমস্ত আইটেমের স্কিমা নির্ধারণ করে।
  • prefixItems : প্রথম N সংখ্যক আইটেমের জন্য স্কিমার একটি তালিকা নির্ধারণ করে, যা টাপল-সদৃশ কাঠামো অনুমোদন করে।
  • minItems : অ্যারেতে থাকা আইটেমের সর্বনিম্ন সংখ্যা।
  • maxItems : অ্যারেতে থাকা আইটেমের সর্বোচ্চ সংখ্যা।

মডেল সমর্থন

নিম্নলিখিত মডেলগুলি কাঠামোগত আউটপুট সমর্থন করে:

মডেল কাঠামোগত আউটপুট
জেমিনি ৩.১ প্রো প্রিভিউ ✔️
জেমিনি ৩ ফ্ল্যাশ প্রিভিউ ✔️
জেমিনি ২.৫ প্রো ✔️
জেমিনি ২.৫ ফ্ল্যাশ ✔️
জেমিনি ২.৫ ফ্ল্যাশ-লাইট ✔️
জেমিনি ২.০ ফ্ল্যাশ ✔️*
জেমিনি ২.০ ফ্ল্যাশ-লাইট ✔️*

উল্লেখ্য যে, Gemini 2.0-এর পছন্দের কাঠামো নির্ধারণের জন্য JSON ইনপুটের মধ্যে একটি সুস্পষ্ট propertyOrdering তালিকা থাকা আবশ্যক। আপনি এই কুকবুকে এর একটি উদাহরণ খুঁজে পেতে পারেন।

কাঠামোগত আউটপুট বনাম ফাংশন কলিং

স্ট্রাকচার্ড আউটপুট এবং ফাংশন কলিং উভয়ই JSON স্কিমা ব্যবহার করে, কিন্তু এদের উদ্দেশ্য ভিন্ন:

বৈশিষ্ট্য প্রাথমিক ব্যবহারের ক্ষেত্র
কাঠামোগত আউটপুট ব্যবহারকারীকে চূড়ান্ত প্রতিক্রিয়া ফরম্যাট করা। যখন আপনি মডেলের উত্তর একটি নির্দিষ্ট ফরম্যাটে পেতে চান (যেমন, ডেটাবেসে সংরক্ষণের জন্য কোনো ডকুমেন্ট থেকে ডেটা বের করা), তখন এটি ব্যবহার করুন।
ফাংশন কলিং কথোপকথন চলাকালীন পদক্ষেপ গ্রহণ করা। যখন মডেলকে চূড়ান্ত উত্তর দেওয়ার আগে আপনাকে কোনো কাজ (যেমন, "বর্তমান আবহাওয়া জানাও") করতে বলতে হয়, তখন এটি ব্যবহার করুন।

সর্বোত্তম অনুশীলন

  • সুস্পষ্ট বিবরণ: প্রতিটি প্রপার্টি কী বোঝায়, সে সম্পর্কে মডেলকে সুস্পষ্ট নির্দেশনা দেওয়ার জন্য আপনার স্কিমার description ফিল্ডটি ব্যবহার করুন। মডেলের আউটপুটকে সঠিক পথে চালিত করার জন্য এটি অত্যন্ত গুরুত্বপূর্ণ।
  • স্ট্রং টাইপিং: যখনই সম্ভব নির্দিষ্ট টাইপ ( integer , string , enum ) ব্যবহার করুন। যদি কোনো প্যারামিটারের বৈধ মানের সংখ্যা সীমিত থাকে, তবে enum ব্যবহার করুন।
  • প্রম্পট ইঞ্জিনিয়ারিং: আপনার প্রম্পটে স্পষ্টভাবে উল্লেখ করুন যে আপনি মডেলটিকে দিয়ে কী করাতে চান। উদাহরণস্বরূপ, "টেক্সট থেকে নিম্নলিখিত তথ্যগুলো বের করুন..." অথবা "প্রদত্ত স্কিমা অনুযায়ী এই ফিডব্যাকটিকে শ্রেণিবদ্ধ করুন..."।
  • যাচাইকরণ: যদিও স্ট্রাকচার্ড আউটপুট সিনট্যাক্টিকভাবে সঠিক JSON নিশ্চিত করে, এটি মানগুলির অর্থগত নির্ভুলতার নিশ্চয়তা দেয় না। আপনার অ্যাপ্লিকেশন কোডে চূড়ান্ত আউটপুট ব্যবহার করার আগে সর্বদা তা যাচাই করে নিন।
  • ত্রুটি পরিচালনা: আপনার অ্যাপ্লিকেশনে শক্তিশালী ত্রুটি পরিচালনা ব্যবস্থা প্রয়োগ করুন, যাতে এমন পরিস্থিতিগুলোও সুন্দরভাবে সামাল দেওয়া যায় যেখানে মডেলের আউটপুট স্কিমা-সম্মত হওয়া সত্ত্বেও আপনার ব্যবসায়িক যুক্তির প্রয়োজনীয়তা পূরণ করতে পারে না।

সীমাবদ্ধতা

  • স্কিমা সাবসেট: JSON স্কিমা স্পেসিফিকেশনের সব বৈশিষ্ট্য সমর্থিত নয়। মডেলটি অসমর্থিত প্রোপার্টিগুলোকে উপেক্ষা করে।
  • স্কিমার জটিলতা: এপিআই খুব বড় বা গভীরভাবে নেস্টেড স্কিমা প্রত্যাখ্যান করতে পারে। যদি আপনি কোনো ত্রুটির সম্মুখীন হন, তবে প্রপার্টির নাম ছোট করে, নেস্টিং কমিয়ে, অথবা কনস্ট্রেইন্টের সংখ্যা সীমিত করে আপনার স্কিমা সরল করার চেষ্টা করুন।