agentleFS
MicrosoftKnown publishermicrosoft/ai-agents-for-beginners/translations/ja/.agents/skills/testing-course-samples/SKILL.md

testing-course-samples

Skill76k starsChanged 5 months agoMITView on GitHub

レッスン用ノートブックおよびコードサンプルが実際の Microsoft Foundry / Azure OpenAI 環境で動作するかを検証します。このリポジトリには scripts/validate-notebooks.ps1 という ランナーが付属しており、全てのPythonノートブックをヘッドレス実行し、 AI Smoke Test GitHub Action(<em>デプロイ済み</em>ホストエージェントを検証するもの—tests/README.md参照)には<strong>使用しないでください</strong>。このスキルは ノートブックをローカルで実行します。 スクリプトは実行済みのコピー、ノートブックごとのログ、results.jsonを $env:TEMP\aiab-nbval に書き出し、失敗数を終了コードとして返します。 一時的な失敗(共有サブスクリプションのHTTP 429レート制限、たまに起こる AzureCliCredential トークンの不具合、タイムアウト)は自動的に リトライされます(-Retries(デフォルト2)および -RetryDelaySeconds バックオフ(デフォルト20秒))。モデルデプロイメントが頻繁に429を返す場合は、 サブスクリプションのGlobalStandard TPMクォータ(az cognitiveservices usage list -l <region>)を確認してください。単一の デプロイメントの容量増強は、<em>サブスクリプション</em> クォータが枯渇している場合は効果がありません。

  • Reads credentials
  • Installs packages

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about microsoft/ai-agents-for-beginners

The biggest 5 of 88 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 88

Talked about on GitHub, Bluesky and Hacker News (88 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 35

30 more on Bluesky

On Hacker News · 3

The file

Files
SKILL.md

コースサンプルのテスト

レッスン用ノートブックおよびコードサンプルが実際の Microsoft Foundry / Azure OpenAI 環境で動作するかを検証します。このリポジトリには scripts/validate-notebooks.ps1 という ランナーが付属しており、全てのPythonノートブックをヘッドレス実行し、

使用タイミング

  • "すべてのノートブック/サンプルを自分のAzureサブスクリプションで検証したいとき。"
  • "パッケージのアップグレードやモデル変更後にコースのスモークテストを行いたいとき。"

AI Smoke Test GitHub Action(<em>デプロイ済み</em>ホストエージェントを検証するもの—tests/README.md参照)には<strong>使用しないでください</strong>。このスキルは ノートブックをローカルで実行します。

前提条件(最初にチェック)

  1. Python 3.12+ とコース依存パッケージ:python -m pip install -r requirements.txt および実行用:python -m pip install nbconvert ipykernel。
  2. リポジトリルートに .env(.env.example からコピー)を用意し、少なくとも以下を設定:
    • AZURE_AI_PROJECT_ENDPOINT — Foundryプロジェクトのエンドポイント (https://<account>.services.ai.azure.com/api/projects/<project>)
    • AZURE_AI_MODEL_DEPLOYMENT_NAME — 廃止されていないデプロイメント名(例:gpt-5-mini)
    • AZURE_OPENAI_ENDPOINT (https://<account>.openai.azure.com) と AZURE_OPENAI_DEPLOYMENT これはAzure OpenAIを直接呼び出すレッスン用(Lesson 06、02-azure-openai、14 handoff/human-loop)。
  3. az login の完了 — サンプルは AzureCliCredential で認証します(Entra ID、キーレス)。
  4. モデルデプロイメントが存在するか確認: az cognitiveservices account deployment list -g <rg> -n <account> -o table。

検証の実行方法

# すべてのPythonノートブック(.NET、.venv、site-packages、translations、スキルアセットはスキップ)
pwsh scripts/validate-notebooks.ps1

# 1つのレッスン、セルごとのタイムアウトが長い
pwsh scripts/validate-notebooks.ps1 -Filter '08-*' -Timeout 600

# 実行されるものをリスト表示するだけ(実行はしない)
pwsh scripts/validate-notebooks.ps1 -List

# 明示的なインタプリタ(`python`がPATHにない場合、例:Windowsストアのエイリアス)
pwsh scripts/validate-notebooks.ps1 -Python "C:/path/to/python.exe"

スクリプトは実行済みのコピー、ノートブックごとのログ、results.jsonを $env:TEMP\aiab-nbval に書き出し、失敗数を終了コードとして返します。

一時的な失敗(共有サブスクリプションのHTTP 429レート制限、たまに起こる AzureCliCredential トークンの不具合、タイムアウト)は自動的に リトライされます(-Retries(デフォルト2)および -RetryDelaySeconds バックオフ(デフォルト20秒))。モデルデプロイメントが頻繁に429を返す場合は、 サブスクリプションのGlobalStandard TPMクォータ(az cognitiveservices usage list -l <region>)を確認してください。単一の デプロイメントの容量増強は、<em>サブスクリプション</em> クォータが枯渇している場合は効果がありません。

結果の解釈

  • PASS — ノートブックはセルエラーなく最後まで実行されました。
  • FAIL — 最初の *Error / *Exception 行が表示されます。完全なトレースバックは、 出力ディレクトリ内の該当する log_*.txt を開いて確認してください。
  • 単一ノートブックの失敗は -Timeout(セルごと)により制限されます。つまり、 ハングしたヒューマンインザループセルは StdinNotImplementedError として検出され、ハング状態にはなりません。

追加リソースが必要なレッスン(無ければ失敗が予想される)

レッスン追加要件
05 Agentic RAGAzure AI Search(AZURE_SEARCH_SERVICE_ENDPOINT、キー)— インメモリのフォールバックパスあり
11 MCP / GitHubGitHub MCPサーバー + PAT
13 memory (cognee)cognee がモデルプロバイダーで設定されていること
15 browser-usePlaywrightのブラウザがインストール済み(playwright install) + AZURE_OPENAI_CHAT_DEPLOYMENT_NAME
17 local agentFoundry Localランタイム + ダウンロード済みQwenモデル(デバイス内、クラウド不要)
*-dotnet-* ノートブック.NET Interactiveカーネル(既定では除外;-IncludeDotnet 使用で含む)

結果の報告

レッスン単位でまとめたPASS/FAILテーブルを作成します。実際のリグレッション (修正すべきコード・設定のバグ)と環境不足(Search/Foundry Local/PATの未設定)を区別し、 本物の失敗ごとに該当する log_*.txt を記載してください。


<!-- CO-OP TRANSLATOR DISCLAIMER START -->

免責事項: 本書類は AI 翻訳サービス Co-op Translator を使用して翻訳されています。正確性を期していますが、自動翻訳には誤りや不正確な部分が含まれる可能性があることをご承知おきください。原文の原語版が正式な情報源とみなされるべきです。重要な情報については、専門の人間による翻訳を推奨します。本翻訳の利用により生じたいかなる誤解や解釈違いについても、当方は責任を負いかねます。

<!-- CO-OP TRANSLATOR DISCLAIMER END -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.