ai-agents-for-beginners
Tutorialmicrosoft/ai-agents-for-beginners
12 lessons to start building AI agents with hands-on code examples.
Overview
A beginner-friendly course covering the fundamentals of building AI agents using Microsoft Agent Framework and Azure AI Foundry. Each lesson includes written content, short videos, and Python code samples. Supports 50+ language translations.
README Preview
# 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)
TroubleshootingHow to fix SSL certificate verification failed error when using Azure AI Inference endpoint on macOS with Python?
Add the argument connection_verify=certifi.where() to your AzureAIChatCompletionClient instantiation. This forces the underlying Azure SDK to use certifi's CA bundle. First, ensure certifi is installed: pip install --upgrade certifi. Example:
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()
)TroubleshootingHow to fix 'Argument 'history' has a value that doesn't support encoding' error in Semantic Kernel?
When passing a non-string value (e.g., ChatHistory object) as the 'history' argument in a Semantic Kernel prompt template, the automatic encoding may fail. To resolve: set allow_dangerously_set_content=True on the argument in the prompt template definition, or convert the value to a string before passing it. For custom objects, implement a custom encoding strategy. This error typically appears during agent selection strategies like KernelFunctionSelectionStrategy.