developing-genkit-dart
यह क्या करती है
यह स्किल डेवलपर्स को Genkit SDK से Dart और Flutter में AI फ़ीचर बनाने में मदद करती है। यह उन लोगों के लिए है जो Dart ऐप में AI एजेंट या मॉडल कॉल जोड़ना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप Genkit से Dart में AI एजेंट या flow बनाना चाहें।
- ✓जब आप Dart या Flutter ऐप में भाषा मॉडल कॉल जोड़ना चाहें।
- ✓जब आप पुराने संस्करण से Genkit Dart कोड को 1.0 API में अपडेट कर रहे हों।
Skill का लिंक
https://github.com/google/skills/blob/main/skills/cloud/developing-genkit-dart/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Genkit से Dart में एक flow बनाइए जो एक विषय ले और भाषा मॉडल से एक छोटा चुटकुला लौटाए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह मौजूदा 1.0 API नामों और पैटर्न का इस्तेमाल करके Genkit Dart कोड लिखती है, और हर फ़ीचर के लिए संदर्भ गाइड की ओर इशारा करती है। यह सेटअप, generation, tools और flows में मदद करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Genkit Dart
Genkit Dart is an AI SDK for Dart that provides a unified interface for code generation, structured outputs, tools, flows, and AI agents.
Core Features and Usage
If you need help with initializing Genkit (Genkit()), Generation (ai.generate), Tooling (ai.defineTool), Flows (ai.defineFlow), Embeddings (ai.embed), streaming, or calling remote flow endpoints, please load the core framework reference:
references/genkit.md
1.0 vs pre-1.0 APIs
This skill targets Genkit Dart 1.0 (genkit: ^1.0.0). Older code and
training data use pre-1.0 names that no longer compile; the common ones:
- HTTP:
startFlowServer/ per-routeshelfHandler/shelf_cors_headersare nowGenkitRouter+serve()orasShelfHandler(), withCorsOptions; context providers takeRequestData(genkit_shelf.md). StatusCodes.UNAUTHENTICATEDisStatusCode.unauthenticated(lowerCamelCase, same forEvalStatus.pass,ToolChoice.required).- No
RetryPlugin;retry()is built in and takesDurations (initialDelay,maxDelay, alsocacheTtlelsewhere). - Renames:
GenerateResponseHelper->GenerateResult(modelResponse,chunk.modelChunk),ExecutablePrompt->Prompt<Input, Output>,embedMany->embed,ToolFnArgs->ToolFnArg,toolOutputSchema->outputSchema,underlyingException->cause,modelInfo:->info:,RemoteAction.dispose()->close(),prompt(input, PromptGenerateOptions(config: ...))->prompt(input, config: ...)(named options, likegenerate),defineMiddleware->ai.defineGenerateMiddleware(app) /generateMiddleware(plugins). - Provider config types are prefixed:
GeminiThinkingConfig,GeminiSafetySettings,GeminiGoogleSearch,GeminiSpeechConfig,GoogleGenAiEmbedderOptions,AnthropicThinkingConfig. - Removed:
ToolInterruptException/ctx.interrupt()(return.interrupt(...)),GoogleAiModels/OpenAIModelsconstants (usegoogleAI.gemini('...'),openAI.model('...')). Simulated constrained output is opt-in viasimulateConstrainedGeneration(). .promptPicoschema is spec-compliant:name: type, description, nevername(description): type(dotprompt.md).
Prompts (Dotprompt)
.prompt files keep prompt content out of Dart code with YAML frontmatter plus a
Handlebars template. See references/dotprompt.md:
promptDir, ai.prompt() (call/stream/render), variants, partials, named
schemas via defineSchema, and the tools/maxTurns/returnToolRequests/use
(middleware) frontmatter fields. A .prompt file can also back an agent directly
via definePromptAgent.
Agents
Genkit Dart has an agent API for persistent, multi-turn conversations
(sessions, snapshots, interrupts, branching, background execution, custom state,
artifacts, and multi-agent delegation). The agent/session/snapshot APIs are
experimental and live behind opt-in imports: server APIs come from
package:genkit/experimental.dart (alongside package:genkit/genkit.dart), the
browser/HTTP client from package:genkit/experimental_client.dart (alongside
package:genkit/client.dart), and dart:io extras like FileSessionStore from
package:genkit/experimental_io.dart. These entry points are @experimental, so
importing them raises an experimental_member_use analyzer warning you can
silence in analysis_options.yaml. The remoteAgent client works from any Dart
app, including Flutter, and the backend is fully interchangeable — it can talk
to a Genkit agent implemented in Dart, JS/TypeScript, or Go over the same HTTP
protocol. A few Dart specifics: interrupts are ai.defineInterrupt(...) or
tools that return .interrupt(...) (there is no ctx.interrupt()), sub-agent delegation uses
the agents() middleware from package:genkit_middleware, and there is no
artifacts() middleware yet (define artifact tools directly).
For more details see:
- Agents: defining/serving an agent and client-managed state (start here).
- Sessions & persistence: session stores (
InMemorySessionStore/FileSessionStore/FirestoreSessionStore). - Human-in-the-loop / interrupts: pausing for approval/input via
.interrupt(...)and resuming. - Branching: forking a conversati
अक्सर पूछे जाने वाले सवाल
क्या यह पुराने Genkit संस्करणों को सपोर्ट करती है?
यह Genkit Dart 1.0 के लिए है और बताती है कि पिछले संस्करणों से कौन से नाम बदले हैं।
क्या यह Flutter ऐप कवर करती है?
हाँ। यह Dart और Flutter दोनों ऐप में भाषा मॉडल जोड़ने में मदद करती है।
यह कौन से फ़ीचर कवर करती है?
सेटअप, generation, tools, flows, embeddings, streaming और दूर के flow endpoints को कॉल करना।
जानकारी
लेखक का मूल विवरण
Generates code and provides documentation for the Genkit Dart SDK. Use when the user asks to build AI agents in Dart, use Genkit flows, or integrate LLMs into Dart/Flutter applications.
repo: google/skills
लोकप्रियता
- GitHub स्टार
- 22k
- रैंकिंग में स्थान
- #10255
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
finding-google-skills
22kआपके एजेंट को किसी सेटअप काम के लिए सही Google गाइड खोजने में मदद करती है, जैसे hosting, databases, storage, sign-in या AI model serving।
gcloud
22kयह आपके एजेंट को Google Cloud gcloud कमांड लिखने और जाँचने में मदद करती है, कुछ भी चलाने से पहले सटीक सिंटैक्स देखकर, ताकि फ़्लैग का अंदाज़ा न लगे।
google-cloud-recipe-auth
22kआपके एजेंट को Google Cloud की पहचान और पहुँच समझाती है, जिसमें यह शामिल है कि लोग और सेवाएँ कैसे साइन इन करते हैं और उन्हें कौन सी अनुमतियाँ मिलती हैं।
google-cloud-recipe-onboarding
22kएक नए डेवलपर को Google Cloud पर पहले कदमों में मदद करती है, जिसमें प्रोजेक्ट चुनना, बिलिंग जोड़ना और पहला संसाधन डिप्लॉय करना शामिल है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।