Gemini API पर मैनेज किए गए एजेंट की मदद से, Antigravity एजेंट को अपनी ज़रूरत के हिसाब से बनाया जा सकता है. इसके लिए, उसमें अपनी ज़रूरत के हिसाब से निर्देश, स्किल, और डेटा जोड़ा जा सकता है. आप इंटरैक्शन के समय एजेंट को इनलाइन तरीके से पसंद के मुताबिक बना सकते हैं या कॉन्फ़िगरेशन को मैनेज किए गए एजेंट के तौर पर सेव कर सकते हैं जिसे आप आईडी की मदद से शुरू करते हैं.
Antigravity एजेंट को पसंद के मुताबिक बनाना
कस्टम एजेंट बनाने का सबसे आसान तरीका यह है कि नया इंटरैक्शन बनाते समय, कॉन्फ़िगरेशन को इनलाइन तरीके से पास किया जाए. इसके लिए, रजिस्ट्रेशन करने की ज़रूरत नहीं होती. एजेंट को तीन तरीकों से बढ़ाया जा सकता है:
- सिस्टम के निर्देश: व्यवहार को आकार देने के लिए,
system_instructionके ज़रिए इनलाइन टेक्स्ट पास करें. - टूल: डिफ़ॉल्ट टूल (कोड एक्ज़ीक्यूशन, खोज, यूआरएल कॉन्टेक्स्ट) को बदलें, रिमोट एमसीपी सर्वर रजिस्टर करें या कस्टम फ़ंक्शन (फ़ंक्शन कॉलिंग) तय करें.
- फ़ाइलें और स्किल: एनवायरमेंट में
AGENTS.mdऔरSKILL.mdजैसी फ़ाइलें माउंट करें.
यहां तीनों को इनलाइन तरीके से पास करने का एक उदाहरण दिया गया है:
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(
agent="antigravity-preview-05-2026",
input="Analyze the Q1 revenue data and create a slide deck.",
system_instruction="You are a data analyst. Always include visualizations and export results as PDF.",
environment={
"type": "remote",
"sources": [
{
"type": "inline",
"target": ".agents/AGENTS.md",
"content": "Always use matplotlib for charts. Include a summary table in every report.",
},
{
"type": "inline",
"target": ".agents/skills/slide-maker/SKILL.md",
"content": "---\nname: slide-maker\n---\n# Slide Maker\nCreate HTML slide decks from data analysis results.",
},
],
},
)
print(interaction.output_text)
JavaScript
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const interaction = await client.interactions.create({
agent: "antigravity-preview-05-2026",
input: "Analyze the Q1 revenue data and create a slide deck.",
system_instruction: "You are a data analyst. Always include visualizations and export results as PDF.",
environment: {
type: "remote",
sources: [
{
type: "inline",
target: ".agents/AGENTS.md",
content: "Always use matplotlib for charts. Include a summary table in every report.",
},
{
type: "inline",
target: ".agents/skills/slide-maker/SKILL.md",
content: "---\nname: slide-maker\n---\n# Slide Maker\nCreate HTML slide decks from data analysis results.",
},
],
},
}, { timeout: 300000 });
console.log(interaction.output_text);
REST
curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-d '{
"agent": "antigravity-preview-05-2026",
"input": "Analyze the Q1 revenue data and create a slide deck.",
"system_instruction": "You are a data analyst. Always include visualizations and export results as PDF.",
"environment": {
"type": "remote",
"sources": [
{
"type": "inline",
"target": ".agents/AGENTS.md",
"content": "Always use matplotlib for charts. Include a summary table in every report."
},
{
"type": "inline",
"target": ".agents/skills/slide-maker/SKILL.md",
"content": "---\nname: slide-maker\n---\n# Slide Maker\nCreate HTML slide decks from data analysis results."
}
]
}
}'
इंटरैक्शन के समय, सब कुछ तय किया जाता है. सबसे पहले, किसी भी चीज़ को रजिस्टर करने की ज़रूरत नहीं होती. Antigravity एजेंट हार्नेस, रनटाइम (कोड एक्ज़ीक्यूशन, फ़ाइल मैनेजमेंट, वेब ऐक्सेस) और आपके कॉन्फ़िगरेशन लेयर उपलब्ध कराता है.
टूल और सिस्टम के निर्देश
system_instruction और tools पैरामीटर का इस्तेमाल करके, किसी खास इंटरैक्शन के लिए एजेंट के व्यवहार और क्षमताओं को पसंद के मुताबिक बनाया जा सकता है.
- सिस्टम के निर्देश: एजेंट के व्यवहार को आकार देने वाला इनलाइन टेक्स्ट पास करने के लिए
system_instructionपैरामीटर का इस्तेमाल करें. यह उन बदलावों के लिए सबसे सही है जिन्हें हर कॉल के हिसाब से बदलना है.system_instructionऔरAGENTS.mdदोनों को जोड़ा जा सकता है. अगर ये दोनों मौजूद हैं, तो दोनों लागू होते हैं. - टूल: डिफ़ॉल्ट रूप से, Antigravity एजेंट के पास
code_execution,google_search, औरurl_contextका ऐक्सेस होता है. इंटरैक्शन के समय,toolsपैरामीटर पास करके इस सूची को बदला जा सकता है. एजेंट को अपने एपीआई और डेटाबेस से कनेक्ट करने के लिए, रिमोट एमसीपी सर्वर रजिस्टर किए जा सकते हैं या कस्टम फ़ंक्शन (फ़ंक्शन कॉलिंग) तय किए जा सकते हैं. उपलब्ध टूल के बारे में पूरी जानकारी पाने के लिए, Antigravity एजेंट: इस्तेमाल किए जा सकने वाले टूल लेख देखें.
फ़ाइल के आधार पर पसंद के मुताबिक बनाना
एजेंट डायरेक्ट्री स्ट्रक्चर
कॉन्फ़िगरेशन को इनलाइन तरीके से पास किया जा सकता है. हालांकि, हमारा सुझाव है कि एजेंट की फ़ाइलों को व्यवस्थित डायरेक्ट्री में रखा जाए. इससे, एजेंट के एनवायरमेंट में फ़ाइलों को मैनेज करना, वर्शन कंट्रोल करना, और माउंट करना आसान हो जाता है.
एजेंट के प्रोजेक्ट की डायरेक्ट्री आम तौर पर इस तरह दिखती है:
my-agent/
├── AGENTS.md # Instructions on how the agent should operate
├── skills/ # Custom skills (subfolders and SKILL.md files)
│ └── slide-maker/
│ └── SKILL.md
└── workspace/ # Initial data files and knowledge
Antigravity रनटाइम, इन फ़ाइलों के लिए .agents/ (और एनवायरमेंट का रूट) स्कैन करता है.
AGENTS.md
एजेंट, स्टार्टअप पर सिस्टम के निर्देशों के तौर पर, एनवायरमेंट से .agents/AGENTS.md (या /.agents/AGENTS.md) को अपने-आप लोड करता है. AGENTS.md का इस्तेमाल, लंबे फ़ॉर्मैट में पर्सोना की परिभाषाओं, विस्तृत दिशा-निर्देशों, और उन निर्देशों के लिए करें जिन्हें कोड के साथ वर्शन कंट्रोल करना है.
इनलाइन सोर्स का इस्तेमाल करके, AGENTS.md माउंट करें:
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(
agent="antigravity-preview-05-2026",
input="Analyze the Q1 revenue data and create a report.",
system_instruction="You are a data analyst. Always include visualizations and export results as PDF.",
environment={
"type": "remote",
"sources": [
{
"type": "inline",
"target": ".agents/AGENTS.md",
"content": "Always use matplotlib for charts. Include a summary table in every report.",
},
],
},
)
print(interaction.output_text)
JavaScript
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const interaction = await client.interactions.create({
agent: "antigravity-preview-05-2026",
input: "Analyze the Q1 revenue data and create a report.",
system_instruction: "You are a data analyst. Always include visualizations and export results as PDF.",
environment: {
type: "remote",
sources: [
{
type: "inline",
target: ".agents/AGENTS.md",
content: "Always use matplotlib for charts. Include a summary table in every report.",
},
],
},
}, { timeout: 300000 });
console.log(interaction.output_text);
REST
curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-d '{
"agent": "antigravity-preview-05-2026",
"input": "Analyze the Q1 revenue data and create a report.",
"system_instruction": "You are a data analyst. Always include visualizations and export results as PDF.",
"environment": {
"type": "remote",
"sources": [
{
"type": "inline",
"target": ".agents/AGENTS.md",
"content": "Always use matplotlib for charts. Include a summary table in every report."
}
]
}
}'
स्किल: SKILL.md
स्किल, ऐसी फ़ाइलें होती हैं जो एजेंट की क्षमताओं को बढ़ाती हैं. इन्हें .agents/skills/<skill-name>/SKILL.md में रखें. हार्नेस, इन्हें अपने-आप ढूंढकर रजिस्टर कर लेता है.
.agents/
├── AGENTS.md
└── skills/
└── slide-maker/
└── SKILL.md
इनलाइन सोर्स का इस्तेमाल करके, कोई स्किल माउंट करें:
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(
agent="antigravity-preview-05-2026",
input="Create a presentation about our Q1 results.",
system_instruction="You create presentations from data.",
environment={
"type": "remote",
"sources": [
{
"type": "inline",
"target": ".agents/skills/slide-maker/SKILL.md",
"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html",
},
],
},
)
print(interaction.output_text)
JavaScript
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const interaction = await client.interactions.create({
agent: "antigravity-preview-05-2026",
input: "Create a presentation about our Q1 results.",
system_instruction: "You create presentations from data.",
environment: {
type: "remote",
sources: [
{
type: "inline",
target: ".agents/skills/slide-maker/SKILL.md",
content: "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html",
},
],
},
}, { timeout: 300000 });
console.log(interaction.output_text);
REST
curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-d '{
"agent": "antigravity-preview-05-2026",
"input": "Create a presentation about our Q1 results.",
"system_instruction": "You create presentations from data.",
"environment": {
"type": "remote",
"sources": [
{
"type": "inline",
"target": ".agents/skills/slide-maker/SKILL.md",
"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html"
}
]
}
}'
.agents/skills/ और /.agents/skills/ से लोड की गई स्किल, दोनों अपने-आप ढूंढ ली जाती हैं.
मैनेज किया गया एजेंट बनाना
कॉन्फ़िगरेशन में ज़रूरी बदलाव करने के बाद, इसे agents.create की मदद से मैनेज किए गए एजेंट के तौर पर बनाया जा सकता है. इससे, हर बार कॉन्फ़िगरेशन को दोहराए बिना, एजेंट को आईडी की मदद से शुरू किया जा सकता है.
सोर्स से
सोर्स के साथ base_agent, id, system_instruction, और base_environment तय करें. हर बार शुरू करने पर, प्लैटफ़ॉर्म आपके फ़ाइल के साथ नया सैंडबॉक्स उपलब्ध कराता है. उपलब्ध सोर्स टाइप (Git, GCS, इनलाइन) के लिए, एनवायरमेंट देखें.
Python
from google import genai
client = genai.Client()
agent = client.agents.create(
id="data-analyst",
base_agent="antigravity-preview-05-2026",
system_instruction="You are a data analyst. Always include visualizations and export results as PDF.",
base_environment={
"type": "remote",
"sources": [
{
"type": "inline",
"target": ".agents/AGENTS.md",
"content": "Always use matplotlib for charts. Include a summary table in every report.",
},
{
"type": "inline",
"target": ".agents/skills/slide-maker/SKILL.md",
"content": "---\nname: slide-maker\n---\n# Slide Maker\nCreate HTML slide decks from data analysis results.",
},
{
"type": "repository",
"source": "https://github.com/my-org/analysis-templates",
"target": "/workspace/templates",
},
],
},
)
print(f"Created agent: {agent.id}")
JavaScript
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const agent = await client.agents.create({
id: "data-analyst",
base_agent: "antigravity-preview-05-2026",
system_instruction: "You are a data analyst. Always include visualizations and export results as PDF.",
base_environment: {
type: "remote",
sources: [
{
type: "inline",
target: ".agents/AGENTS.md",
content: "Always use matplotlib for charts. Include a summary table in every report.",
},
{
type: "inline",
target: ".agents/skills/slide-maker/SKILL.md",
content: "---\nname: slide-maker\n---\n# Slide Maker\nCreate HTML slide decks from data analysis results.",
},
{
type: "repository",
source: "https://github.com/my-org/analysis-templates",
target: "/workspace/templates",
},
],
},
});
console.log(`Created agent: ${agent.id}`);
REST
curl -X POST "https://generativelanguage.googleapis.com/v1beta/agents" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-d '{
"id": "data-analyst",
"base_agent": "antigravity-preview-05-2026",
"system_instruction": "You are a data analyst. Always include visualizations and export results as PDF.",
"base_environment": {
"type": "remote",
"sources": [
{
"type": "inline",
"target": ".agents/AGENTS.md",
"content": "Always use matplotlib for charts. Include a summary table in every report."
},
{
"type": "inline",
"target": ".agents/skills/slide-maker/SKILL.md",
"content": "---\nname: slide-maker\n---\n# Slide Maker\nCreate HTML slide decks from data analysis results."
},
{
"type": "repository",
"source": "https://github.com/my-org/analysis-templates",
"target": "/workspace/templates"
}
]
}
}'
मौजूदा एनवायरमेंट से (फ़ोर्क करना)
जब तक एनवायरमेंट सही न हो जाए (पैकेज इंस्टॉल किए गए हों, फ़ाइलें मौजूद हों), तब तक बेस Antigravity एजेंट के साथ बदलाव करें. इसके बाद, इसे मैनेज किए गए एजेंट में फ़ोर्क करें.
Python
from google import genai
client = genai.Client()
# Step 1: set up the environment interactively
interaction = client.interactions.create(
agent="antigravity-preview-05-2026",
input="Install pandas, matplotlib, and seaborn. Create an analysis template at /workspace/template.py.",
environment="remote",
)
# Step 2: fork that environment into a managed agent
agent = client.agents.create(
id="my-data-analyst",
base_agent="antigravity-preview-05-2026",
system_instruction="You are a data analyst. Use the template at /workspace/template.py for all reports.",
base_environment=interaction.environment_id,
)
print(f"Forked agent successfully: {agent.id}")
JavaScript
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const interaction = await client.interactions.create({
agent: "antigravity-preview-05-2026",
input: "Install pandas, matplotlib, and seaborn. Create an analysis template at /workspace/template.py.",
environment: "remote",
}, { timeout: 300000 });
const agent = await client.agents.create({
id: "my-data-analyst",
base_agent: "antigravity-preview-05-2026",
system_instruction: "You are a data analyst. Use the template at /workspace/template.py for all reports.",
base_environment: interaction.environment_id,
});
console.log(`Forked agent successfully: ${agent.id}`);
REST
curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-d '{
"agent": "antigravity-preview-05-2026",
"input": "Install pandas, matplotlib, and seaborn. Create an analysis template at /workspace/template.py.",
"environment": "remote"
}'
नेटवर्क के नियमों के साथ
मैनेज किए गए एजेंट को सेव करते समय, आउटबाउंड ऐक्सेस को लॉक किया जा सकता है या क्रेडेंशियल जोड़े जा सकते हैं. अनुमतियों की पूरी सूची का स्कीमा, क्रेडेंशियल पैटर्न, और वाइल्डकार्ड देखने के लिए, एनवायरमेंट: नेटवर्क कॉन्फ़िगरेशन देखें.
यहां दिए गए उदाहरण में, issue-resolver एजेंट बनाया गया है. यह एजेंट सिर्फ़ GitHub और PyPI को ऐक्सेस कर सकता है. साथ ही, GitHub के लिए क्रेडेंशियल जोड़े गए हैं:
Python
from google import genai
client = genai.Client()
agent = client.agents.create(
id="issue-resolver",
base_agent="antigravity-preview-05-2026",
system_instruction="You resolve GitHub issues. Clone the repo, find the bug, write the fix, run the tests, and open a PR.",
base_environment={
"type": "remote",
"sources": [
{
"type": "repository",
"source": "https://github.com/my-org/backend",
"target": "/workspace/repo",
}
],
"network": {
"allowlist": [
{
"domain": "api.github.com",
"transform": {
"Authorization": "Basic YOUR_BASE64_TOKEN"
},
},
{"domain": "pypi.org"},
]
},
},
)
print(f"Created issue-resolver agent successfully: {agent.id}")
JavaScript
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const agent = await client.agents.create({
id: "issue-resolver",
base_agent: "antigravity-preview-05-2026",
system_instruction: "You resolve GitHub issues. Clone the repo, find the bug, write the fix, run the tests, and open a PR.",
base_environment: {
type: "remote",
sources: [
{
type: "repository",
source: "https://github.com/my-org/backend",
target: "/workspace/repo",
}
],
network: {
allowlist: [
{
domain: "api.github.com",
transform: {
"Authorization": "Basic YOUR_BASE64_TOKEN"
},
},
{ domain: "pypi.org" },
]
}
},
});
console.log(`Created issue-resolver agent successfully: ${agent.id}`);
REST
curl -X POST "https://generativelanguage.googleapis.com/v1beta/agents" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-d '{
"id": "issue-resolver",
"base_agent": "antigravity-preview-05-2026",
"system_instruction": "You resolve GitHub issues. Clone the repo, find the bug, write the fix, run the tests, and open a PR.",
"base_environment": {
"type": "remote",
"sources": [
{
"type": "repository",
"source": "https://github.com/my-org/backend",
"target": "/workspace/repo"
}
],
"network": {
"allowlist": [
{
"domain": "api.github.com",
"transform": {
"Authorization": "Basic YOUR_BASE64_TOKEN"
}
},
{"domain": "pypi.org"}
]
}
}
}'
एजेंट को शुरू करना
नया इंटरैक्शन बनाकर, मैनेज किए गए एजेंट को उसके आईडी से कॉल करें. हर बार शुरू करने पर, बेस एनवायरमेंट फ़ोर्क होता है. इसलिए, हर रन साफ़-सुथरे तरीके से शुरू होता है.
Python
result = client.interactions.create(
agent="data-analyst",
input="Analyze Q1 revenue data from /workspace/templates/sample.csv and create a slide deck.",
environment="remote",
)
print(result.output_text)
JavaScript
const result = await client.interactions.create({
agent: "data-analyst",
input: "Analyze Q1 revenue data from /workspace/templates/sample.csv and create a slide deck.",
environment: "remote",
}, { timeout: 300000 });
console.log(result.output_text);
REST
curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-d '{
"agent": "data-analyst",
"input": "Analyze Q1 revenue data from /workspace/templates/sample.csv and create a slide deck.",
"environment": "remote"
}'
सिलसिलेवार बातचीत और स्ट्रीमिंग के लिए, क्विकस्टार्ट देखें. मैनेज किए गए एजेंट पर भी previous_interaction_id और environment के वही पैटर्न लागू होते हैं.
मैनेज किए गए एजेंट, बैकग्राउंड में एक्ज़ीक्यूशन और रद्द करने की सुविधा भी देते हैं. ज़्यादा जानकारी और कोड के उदाहरणों के लिए, Antigravity एजेंट: बैकग्राउंड में एक्ज़ीक्यूशन देखें.
शुरू करते समय कॉन्फ़िगरेशन को बदलना
इंटरैक्शन बनाते समय, एजेंट के डिफ़ॉल्ट system_instruction और tools को बदला जा सकता है. इससे, सेव की गई एजेंट की परिभाषा में बदलाव किए बिना, किसी खास रन के लिए एजेंट के व्यवहार या क्षमताओं में बदलाव किया जा सकता है.
Python
result = client.interactions.create(
agent="data-analyst",
input="Analyze Q1 revenue data, but do not create a slide deck. Just output a summary table.",
system_instruction="You are a data analyst. Focus ONLY on summary tables. Ignore default instructions about slides.",
tools=[{"type": "code_execution"}], # Override to only use code execution
environment="remote",
)
print(result.output_text)
JavaScript
const result = await client.interactions.create({
agent: "data-analyst",
input: "Analyze Q1 revenue data, but do not create a slide deck. Just output a summary table.",
system_instruction: "You are a data analyst. Focus ONLY on summary tables. Ignore default instructions about slides.",
tools: [{ type: "code_execution" }], // Override to only use code execution
environment: "remote",
}, { timeout: 300000 });
console.log(result.output_text);
REST
curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-d '{
"agent": "data-analyst",
"input": "Analyze Q1 revenue data, but do not create a slide deck. Just output a summary table.",
"system_instruction": "You are a data analyst. Focus ONLY on summary tables. Ignore default instructions about slides.",
"tools": [{"type": "code_execution"}],
"environment": "remote"
}'
एजेंट मैनेज करें
एजेंट की सूची देखी जा सकती है, उन्हें पाया जा सकता है, और मिटाया जा सकता है.
एजेंट की सूची देखना
Python
agents = client.agents.list()
for a in agents.agents:
print(f"{a.id}: {a.description}")
JavaScript
const agents = await client.agents.list();
if (agents.agents) {
for (const a of agents.agents) {
console.log(`${a.id}: ${a.description}`);
}
}
REST
curl -X GET "https://generativelanguage.googleapis.com/v1beta/agents" \
-H "x-goog-api-key: $GEMINI_API_KEY"
कोई एजेंट पाना
Python
agent = client.agents.get(id="data-analyst")
print(agent)
JavaScript
const agent = await client.agents.get("data-analyst");
console.log(agent);
REST
curl -X GET "https://generativelanguage.googleapis.com/v1beta/agents/data-analyst" \
-H "x-goog-api-key: $GEMINI_API_KEY"
कोई एजेंट मिटाना
एजेंट को मिटाने पर, उसका कॉन्फ़िगरेशन भी मिट जाता है. हालांकि, एजेंट की मदद से बनाए गए मौजूदा एनवायरमेंट और इंटरैक्शन पर कोई असर नहीं पड़ता.
Python
client.agents.delete(id="data-analyst")
JavaScript
await client.agents.delete("data-analyst");
REST
curl -X DELETE "https://generativelanguage.googleapis.com/v1beta/agents/data-analyst" \
-H "x-goog-api-key: $GEMINI_API_KEY"
एजेंट की परिभाषा का रेफ़रंस
| फ़ील्ड | टाइप | ज़रूरी है | ब्यौरा |
|---|---|---|---|
id |
स्ट्रिंग | हां | एजेंट का यूनीक आइडेंटिफ़ायर. इसका इस्तेमाल, एजेंट को शुरू करने के लिए किया जाता है. |
description |
स्ट्रिंग | नहीं | एजेंट के बारे में ऐसी जानकारी जिसे कोई भी व्यक्ति आसानी से पढ़ सकता है. |
base_agent |
स्ट्रिंग | हां | बेस एजेंट का आईडी (उदाहरण के लिए, antigravity-preview-05-2026). |
system_instruction |
स्ट्रिंग | नहीं | सिस्टम प्रॉम्प्ट, जो व्यवहार और पर्सोना तय करता है. |
tools |
ऐरे | नहीं | ऐसे टूल जिनका इस्तेमाल एजेंट कर सकता है. अगर इसे शामिल नहीं किया जाता है, तो डिफ़ॉल्ट रूप से code_execution, google_search, और url_context का इस्तेमाल किया जाता है. इस्तेमाल किए जा सकने वाले टूल में code_execution, google_search, url_context, mcp_server, और कस्टम function की परिभाषाएं शामिल हैं. |
base_environment |
स्ट्रिंग या ऑब्जेक्ट | नहीं | "remote", environment_id, या sources और network वाला कॉन्फ़िगरेशन ऑब्जेक्ट. एनवायरमेंट देखें. |
बदलाव करने से जुड़ा वर्कफ़्लो
- बेस Antigravity एजेंट के साथ प्रोटोटाइप बनाएं. सिस्टम के निर्देश और एनवायरमेंट सोर्स को इनलाइन तरीके से पास करें. निर्देशों, स्किल, और एनवायरमेंट सेटअप को इंटरैक्टिव तरीके से टेस्ट करें.
- एनवायरमेंट को स्थिर करें. पैकेज इंस्टॉल करें, सोर्स माउंट करें, और पुष्टि करें कि सब कुछ काम कर रहा है.
- नया एजेंट बनाकर, इसे मैनेज किए गए एजेंट के तौर पर सेव करें. इसके लिए, सोर्स का इस्तेमाल करें या एनवायरमेंट को फ़ोर्क करें.
- एजेंट की परिभाषा को अपडेट करें. सिस्टम के निर्देश बदलें, स्किल बदलें या सोर्स जोड़ें. अगली बार शुरू करने पर, नया कॉन्फ़िगरेशन लागू हो जाएगा.
सीमाएं
- प्रीव्यू स्टेटस: मैनेज किए गए एजेंट, फ़िलहाल प्रीव्यू में हैं. इनकी सुविधाओं और स्कीमा में बदलाव हो सकता है.
- बेस एजेंट: सिर्फ़
antigravity-preview-05-2026का इस्तेमालbase_agentके तौर पर किया जा सकता है. - वर्शनिंग की सुविधा उपलब्ध नहीं है: एजेंट की वर्शनिंग और रोलबैक की सुविधा, फ़िलहाल उपलब्ध नहीं है.
- सब-एजेंट नेस्टिंग की सुविधा उपलब्ध नहीं है: सब-एजेंट को डेलिगेट करने की सुविधा, फ़िलहाल उपलब्ध नहीं है.
- ज़्यादा से ज़्यादा 1,000 मैनेज किए गए एजेंट बनाए जा सकते हैं.
आगे क्या करना है
- एजेंट की खास जानकारी: मैनेज किए गए एजेंट के मुख्य कॉन्सेप्ट के बारे में जानें.
- क्विकस्टार्ट: सिलसिलेवार बातचीत और स्ट्रीमिंग की सुविधा के साथ एजेंट बनाना शुरू करें.
- Antigravity एजेंट: डिफ़ॉल्ट एजेंट की क्षमताओं, टूल, और कीमत के बारे में जानें.
- एजेंट एनवायरमेंट: सैंडबॉक्स, सोर्स, और नेटवर्किंग कॉन्फ़िगर करें.
- एजेंट प्लैटफ़ॉर्म पर मैनेज किए गए एजेंट का एपीआई: संगठन के लिए, इन-बिल्ट गवर्नेंस वाले एजेंट बनाने के लिए.