项目简介
面向初学者的 AI 智能体构建课程,涵盖 Microsoft Agent Framework 与 Azure AI Foundry 基础。每节课包含文档、视频及 Python 示例代码,支持 50 多种语言翻译。
README 预览
# AI Agents for Beginners - A Course\n\n\n\n## A course teaching everything you need to know to start building AI Agents\n\n[](https://github.com/microsoft/ai-agents-for-beginners/blob/master/LICENSE?WT.mc_id=academic-105485-koreyst)\n[](https://GitHub.com/microsoft/ai-agents-for-beginners/graphs/contributors/?WT.mc_id=academic-105485-koreyst)\n[](https://GitHub.com/microsoft/ai-agents-for-beginners/issues/?WT.mc_id=academic-105485-koreyst)\n[](https://GitHub.com/microsoft/ai-agents-for-beginners/pulls/?WT.mc_id=academic-105485-koreyst)\n[](http://makeapullrequest.com?WT.mc_id=academic-105485-koreyst)\n\n### 🌐 Multi-Language Support\n\n#### Supported via GitHub Action (Automated & Always Up-to-Date)\n\n\n[Arabic](./translations/ar/README.md) | [Bengali](./translations/bn/README.md) | [Bulgarian](./translations/bg/README.md) | [Burmese (Myanmar)](./translations/my/README.md) | [Chinese (Simplified)](./translations/zh-CN/README.md) | [Chinese (Traditional, Hong Kong)](./translations/zh-HK/README.md) | [Chinese (Traditional, Macau)](./translations/zh-MO/README.md) | [Chinese (Traditional, Taiwan)](./translations/zh-TW/README.md) | [Croatian](./translations/hr/README.md) | [Czech](./translations/cs/README.md) | [Danish](./translations/da/README.md) | [Dutch](./translations/nl/README.md) | [Estonian](./translations/et/README.md) | [Finnish](./translations/fi/README.md) | [French](./translations/fr/README.md) | [German](./translations/de/README.md) | [Greek](./translations/el/README.md) | [Hebrew](./translations/he/README.md) | [Hindi](./translations/hi/README.md) | [Hungarian](./translations/hu/README.md) | [Indonesian](./translations/id/README.md) | [Italian](./translations/it/README.md) | [Japanese](./translations/ja/README.md) | [Kannada](./translations/kn/README.md) | [Khmer](./translations/km/README.md) | [Korean](./translations/ko/README.md) | [Lithuanian](./translations/lt/README.md) | [Malay](./translations/ms/README.md) | [Malayalam](./translations/ml/README.md
常见问题 (2)
故障排除如何在 macOS 上使用 Python 调用 Azure AI Inference 端点时修复 SSL 证书验证失败错误?
故障排除
如何在 macOS 上使用 Python 调用 Azure AI Inference 端点时修复 SSL 证书验证失败错误?将参数 connection_verify=certifi.where() 添加到你的 AzureAIChatCompletionClient 实例化中。这会强制底层的 Azure SDK 使用 certifi 的 CA 包。首先,确保已安装 certifi:pip install --upgrade certifi。示例:
import certifi
from autogen_ext.models.azure import AzureAIChatCompletionClient
client = AzureAIChatCompletionClient(
model="gpt-4o-mini",
endpoint="https://models.inference.ai.azure.com",
credential=AzureKeyCredential(os.getenv("GITHUB_TOKEN")),
model_info={...},
connection_verify=certifi.where()
)故障排除如何修复 Semantic Kernel 中出现的“参数‘history’的值不支持编码”错误?
故障排除
如何修复 Semantic Kernel 中出现的“参数‘history’的值不支持编码”错误?当在Semantic Kernel提示模板中将非字符串值(例如ChatHistory对象)作为'history'参数传递时,自动编码可能会失败。解决方法:在提示模板定义中的参数上设置allow_dangerously_set_content=True,或者在传递之前将值转换为字符串。对于自定义对象,请实现自定义编码策略。此错误通常出现在像KernelFunctionSelectionStrategy这样的代理选择策略中。