मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट7.6k · #13153

decisions

यह क्या करती है

यह स्किल बताती है कि Agent-Native ऐप में निर्णय सहायक का उपयोग करके संदेश या इनपुट को लेबल या स्कोर कैसे करें। सहायक उत्तर लौटाता है और उसके बाद की कार्रवाई कभी खुद नहीं करता। यह स्मार्ट रूटिंग या ट्रायज जोड़ने वाले डेवलपर्स के लिए है।

कब इस्तेमाल करें

  • ✓जब आपको तय करना है कि कोई संदेश किसी खास प्रकार का अनुरोध है या नहीं।
  • ✓जब आप इनपुट को क्रमबद्ध स्तरों पर स्कोर करना चाहते हैं।
  • ✓जब आपको नामित विकल्पों के सेट में से एक मान चुनना है।

Skill का लिंक

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/decisions/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/decisions/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप आने वाले ग्राहक संदेश जांचकर बता सकते हैं कि कौन से रद्द करने के अनुरोध हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

डेवलपर इनपुट और नामित प्रश्न सहायक को देता है। सहायक एक लेबल वाला नतीजा लौटाता है, और ऐप तय करता है कि उसके साथ क्या करना है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Decisions

Rule

Use decide() to classify or score supplied inputs. It returns a result and never performs, authorizes, or replaces the action selected from that result.

How

Pass an explicit ownerEmail, an input string or array of parts, and named questions to decide() from @agent-native/core/decisions:

import { decide } from "@agent-native/core/decisions";

const result = await decide({
  ownerEmail: "owner@example.com",
  input: [{ type: "text", text: "Please cancel Friday's lunch reservation." }],
  questions: [
    {
      type: "predicate",
      name: "isCancellationRequest",
      instructions: "Does the message ask to cancel a reservation?",
    },
  ],
});

input can be a plain string or contain text, structured JSON, or an image URL. Questions are named and use one of these shapes:

Type Fields Use
predicate name, instructions Evaluate one stated predicate
choice name, instructions, choices: { value: string, description: string }[] Choose among the supplied string values
score name, instructions, levels: { label: string, description: string }[] Score against 2–10 ordered levels

Provider and model capabilities can differ. Treat question support as capability-aware. Only claim a provider/model supports a question type after that combination has been verified. An ok result includes provider, model, and answers keyed by question name; cached and usage are optional. A not_configured result includes the missing_credentials reason and configured provider list. A failed result has a typed reason and may include provider and questionNames. Handle these statuses as distinct outcomes; never turn a failure into an answer.

Provider routing and caches

Provider order is configurable per workspace. New customer workspaces try Builder Jev first, then a personal Jev key, then OpenAI. Within Jev, the Builder gateway is tried before falling back to a direct key. If no provider is configured, decide() returns not_configured.

getDecisionsStatus() reports credential readiness separately from provider capabilities. The Builder Jev proxy is verified for predicate and choice. Jev score remains unverified and disabled by its capability flag, so decide() skips Jev for score questions and continues to the next configured provider. A Jev-only score request returns failed with unverified_capability. The OpenAI Decisions API supports scores with 2–10 ordered levels; its request and response mapping is covered by documented fixtures.

Key any per-provider threshold or cache by both provider and model. cacheKey enables caching only when supplied. Cache identity includes the owner, organization, provider, model, cache key, input, and questions. The in-memory cache has a 60-second TTL and a 256-entry cap.

Related skills

  • actions — keep action behavior focused and deterministic.
अक्सर पूछे जाने वाले सवाल

क्या यह सहायक कुछ रद्द या बदलता है?

नहीं। यह केवल नतीजा लौटाता है, और कोई कार्रवाई न करता है न उसे अधिकृत करता है।

यह किस तरह के सवाल पूछ सकता है?

यह हां या ना वाले predicates, नामित मानों में चुनाव और दो से दस स्तरों पर स्कोर का समर्थन करता है।

क्या सभी मॉडल हर सवाल प्रकार का समर्थन करते हैं?

स्किल कहती है कि समर्थन provider और मॉडल के अनुसार अलग है, इसलिए इस्तेमाल से पहले हर संयोजन जांचना होगा।

जानकारी

लेखक का मूल विवरण

How to use `@agent-native/core/decisions` for capability-aware classification and scoring. Use when implementing or reviewing decision evaluation, provider ordering, per-provider thresholds, or decision-result caches.

repo: BuilderIO/agent-native

लोकप्रियता

GitHub स्टार
7.6k
रैंकिंग में स्थान
#13153
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

design-exploration

7.6k

यह आपके एजेंट को UI के कई डिज़ाइन विकल्प साथ-साथ दिखाने, आपकी पसंद चुनवाने और फिर चुने डिज़ाइन को सुधारने में मदद करती है।

डिज़ाइनइंटरफ़ेस (UI/UX)

visual-edit

7.6k

यह आपके एजेंट को चल रहे लोकल ऐप को विज़ुअल एडिटर में खोलने देती है, ताकि आप उसकी असली स्क्रीन एक साथ देखकर संपादित कर सकें।

डिज़ाइनइंटरफ़ेस (UI/UX)

turn-into-app

7.6k

यह किसी वर्कफ़्लो, स्प्रेडशीट या प्रोजेक्ट को भरी हुई स्क्रीन वाले विज़ुअल ऐप में बदलती है, जिसके कंट्रोल के पीछे एजेंट काम करता है।

कोडिंगसामान्य कोडिंग

visual-plan

7.6k

यह सादे टेक्स्ट वाली योजना को डायग्राम, फ़ाइल नक्शों, कोड अंश और खुले सवालों वाली इंटरैक्टिव विज़ुअल योजना में बदलती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

मिलती-जुलती skills