agent-framework-builder-python
यह क्या करती है
यह स्किल Microsoft Agent Framework के साथ Python ऐप बनाने का मार्गदर्शन करती है, जिसमें एजेंट, वर्कफ़्लो, टूल और होस्टिंग शामिल हैं। यह उन डेवलपर्स के लिए है जो Python प्रोग्राम के अंदर AI सहायक चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप Python ऐप में AI एजेंट बनाना चाहते हैं।
- ✓जब आपको Python में कई स्टेप या एजेंट का समन्वय करने वाला वर्कफ़्लो चाहिए।
- ✓जब आप मौजूदा Python एजेंट प्रोजेक्ट की समीक्षा करके उसे नवीनतम फ़्रेमवर्क संस्करणों तक लाना चाहते हैं।
Skill का लिंक
https://github.com/microsoft/agent-framework/blob/main/skills/agent-framework-builder-python/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे Python ऐप में Microsoft Agent Framework से एक AI एजेंट जोड़ने में मदद कर सकते हैं, जो ऑर्डर देख सके?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आपका प्रोजेक्ट और उसके पैकेज जाँचता है, सबसे सरल मेल खाता पैटर्न चुनता है, और सिर्फ़ वही गाइड पढ़ता है जिसकी ज़रूरत है। फिर वह सबसे छोटा बदलाव करता है और एक केंद्रित जाँच चलाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Agent Framework builder for Python
Use this skill as the entry point for Python Agent Framework application work. Choose the smallest framework pattern that preserves the required behavior, load only the relevant references, and validate against current APIs instead of relying on remembered preview-era syntax.
Workflow
- Inspect the existing project, Python version, dependency manager, and installed Agent Framework packages.
- Choose the simplest matching path from the table below.
- Resolve design questions only when they materially change the implementation.
- Read only the linked reference for the selected path.
- Implement the smallest coherent change and run the narrowest validation that exercises it.
Core abstractions
- A chat client implements the model-facing
SupportsChatGetResponseprotocol. It sends messages and options to a model provider and returns chat responses or streaming updates. - An agent implements the
SupportsAgentRunprotocol. The standardAgentimplementation combines a chat client with instructions, tools, middleware, context providers, and session handling behind onerun(...)interface. - A harness agent is a regular
Agentassembled bycreate_harness_agent. It adds an opinionated set of context providers and middleware; it does not introduce a separate agent abstraction. - A workflow coordinates explicit execution paths. Graph workflows and most orchestration builders can use multiple
SupportsAgentRunimplementations or executors.HandoffBuilderis the exception: its participants must be concreteAgentinstances.
User interface options
- DevUI is a local development, testing, and debugging tool for interacting with agents and workflows. Never run or deploy DevUI as a production application host.
- AG-UI is the application-facing protocol integration for connecting an agent or workflow to an AG-UI-compatible
frontend. Use the
agent-framework-ag-uipackage when the product needs streaming UI events, tool interactions, shared state, interrupts, or resume behavior.
Choose the build path
| Path | Choose it when | Details |
|---|---|---|
| Plain agent | One model-driven actor owns the task and tools, sessions, context, and middleware are sufficient. | Plain agents |
| Harness agent | The product needs an operating loop with todos, modes, memory, approvals, skills, optional file access, background agents, shell, compaction, or repeated execution. | Harness agents |
| Workflow or orchestration | Explicit stages, routing, parallelism, multiple participants, checkpointing, human input, or intermediate outputs are central to correctness. | Workflows |
| Declarative definition | YAML or JSON should be the source of truth for a supported agent or workflow. | Declarative definitions |
| Evaluation | Expected outputs, tool calls, failed runs, or quality regressions are the main concern. | Evaluation |
| Observability | The task is diagnosing or monitoring runtime behavior with traces, logs, and metrics. | Observability |
| Extensibility | The application needs a custom provider, ContextProvider, or middleware component. | Extensibility |
| Integration | The task is choosing or wiring a provider, protocol, memory store, tool service, UI, or platform extension. | Integrations |
| Hosting and deployment | Working Agent Framework code needs a process host, protocol endpoint, identity contract, or deployment shape. | Hosting and deployment |
Defaults
- Agent Framework requires Python 3.11 or later. Prefer the latest supported Python release or the previous release (N-1), unless a required dependency has a narrower compatibility range.
- Install the narrow Agent Framework distribution needed by the application instead of defaulting to the
agent-frameworkmeta-package. - Agent Framework does not automatically read
.envfiles. If the project uses one, callload_dotenv()explicitly or use the selected API's documentedenv_file_pathor equivalent initialization option.
Current documentation lookup
Use local guidance for stable decisions and common patterns. For provider matrices, package maturity, hosted tools,
अक्सर पूछे जाने वाले सवाल
फ़्रेमवर्क के कौन-से हिस्से कवर होते हैं?
एजेंट, हार्नेस एजेंट, वर्कफ़्लो, टूल, सेशन, middleware, मूल्यांकन, इंटीग्रेशन और होस्टिंग।
क्या यह नवीनतम कोड उदाहरण इस्तेमाल करेगा?
हाँ। यह एजेंट को बताती है कि पुराने उदाहरणों पर भरोसा करने के बजाय मौजूदा API जाँचे।
क्या पैटर्न मुझे खुद चुनना होगा?
नहीं। स्किल वह सबसे छोटा पैटर्न चुनने में मदद करती है जो आपके चाहे व्यवहार को बनाए रखे।
जानकारी
लेखक का मूल विवरण
Use this skill when building, modifying, reviewing, evaluating, integrating, or hosting Python applications with Microsoft Agent Framework. Use it for Agent Framework agents, harness agents, workflows, orchestrations, declarative definitions, tools, sessions, middleware, evaluation, observability, integrations, or hosting, even when the user has not yet chosen the correct framework pattern.
लोकप्रियता
- GitHub स्टार
- 14k
- रैंकिंग में स्थान
- #11140
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
मिलती-जुलती 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 करने के लिए उपयोगी है।