OpenSource-Hub

ai-agents-for-beginners

チュートリアル

microsoft/ai-agents-for-beginners

12課でAIエージェントの構築を学びます。実戦コード付き。

概要

初心者向けの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

FAQ (2)

トラブル対応
macOSでPythonを使用してAzure AI Inferenceエンドポイントを利用する際にSSL証明書の検証に失敗するエラーを修正する方法

AzureAIChatCompletionClient のインスタンス化に引数 connection_verify=certifi.where() を追加します。これにより、基盤となる 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()
)

参照 Issue #256
トラブル対応
Semantic Kernel で 'Argument 'history' has a value that doesn't support encoding' エラーを修正する方法は?

非文字列の値(例:ChatHistoryオブジェクト)をSemantic Kernelのプロンプトテンプレートの'history'引数として渡すと、自動エンコードが失敗する可能性があります。解決するには:プロンプトテンプレート定義内の引数にallow_dangerously_set_content=Trueを設定するか、値を渡す前に文字列に変換してください。カスタムオブジェクトの場合は、カスタムエンコード戦略を実装してください。このエラーは通常、KernelFunctionSelectionStrategyなどのエージェント選択戦略中に発生します。

参照 Issue #305