ill335-troubleshooting
Diagnoses ILL335 setup, authentication, dependency, Responses API, validation, and hosted-agent failures. Use when a learner reports an error, failed lab checkpoint, broken setup, dev container or Codespaces prebuild failure, deployment problem, rate limit, content filter, or unexpected model output.
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 23
- Forks
- 11
01 前言 Front Matter
- name
- ill335-troubleshooting
- license
- MIT
- description
- Diagnoses ILL335 setup, authentication, dependency, Responses API, validation, and hosted-agent failures. Use when a learner reports an error, failed lab checkpoint, broken setup, dev container or Codespaces prebuild failure, deployment problem, rate limit, content filter, or unexpected model output.
02 资源文件 2
- 参考文档references/getdata.md1.0 KB
- 参考文档references/pyspark.md4.1 KB
03 SKILL.md 正文
Troubleshoot ILL335 Safely
Diagnose the smallest failing layer first. Do not provision, deploy, or delete Azure resources merely to test a theory.
Start with Reproduction
- Ask for the command that failed and the error text, with secrets removed.
- Identify the learner's operating system and lab number.
- Confirm the virtual environment is active.
- Run the smallest relevant check.
For Docker workspace startup, Codespaces prebuilds, or container dependency failures, use ill335-devcontainer. Establish BYOD versus managed Skillable first; do not direct managed learners to rebuild their environment or provision Azure resources.
Diagnostic Order
Repository and Python
python -m pip check
python -m pytest src\tests\test_sentiment.py -q
python src\tests\validate_lab.py
Configuration
- Confirm
.envexists without printing its contents. - Check that
PROJECT_ENDPOINTis not a placeholder. - Check that model deployment names match the Foundry project.
- Use
az account showandazd auth statusfor authentication state. - Confirm Azure CLI and
azdare signed into the same tenant and subscription. Reauthenticate the mismatched CLI before retrying.
Responses API
| Symptom | Likely action |
|---|---|
| Authentication failure | Refresh az login; verify project access |
| Resource not found | Verify project endpoint and model deployment name |
| HTTP 429 | Wait for the retry interval; check quota and capacity |
| Content filter response | Explain the safety boundary; do not bypass it |
| Empty or incomplete output | Inspect response.status and the full error |
| Invalid JSON | Preserve the conservative fallback and review the instructions |
Hosted Agent
- Require
azd1.27.1 or later and install the provider bundle withazd ext install microsoft.foundry. - Keep
azure.ai.agents1.0.0-beta.8 or later andazure.ai.projects1.0.0-beta.4 or later inazure.yamlrequiredVersions; the meta-extension installs these providers but does not replace the compatibility declarations. - Confirm
azure.yamlcontains separateazure.ai.projectandazure.ai.agentservices, an agentusesdependency, andinfra.provider: microsoft.foundry. - Treat standalone
agent.yamlandagent.manifest.yamlas deprecated. This lab uses direct-code remote build, so Dockerfiles, ACR provisioning, and capability-host resources indicate the wrong deployment path. - Run
python -m pip install -r src\agent\requirements.txt, thenpython -m pip check. - Verify
/readiness, not/health; the current host exposes readiness at port 8088. - Use
azd upfor the first provision-and-deploy operation andazd deployonly for later code updates. - Use
azd ai agent show --output jsonbefore invoking a deployed agent. - Review deployment output and hosted logs before changing infrastructure.
Safety Boundaries
- Never request or reveal credentials, tokens, connection strings, or real patient data.
- Do not disable content safety to make a test pass.
- Do not delete resource groups or agent sessions without explicit learner approval.
- Do not provision resources merely to validate local configuration or dependencies.
- Do not replace current Responses API code with Chat Completions.
- Do not add broad exception handlers that hide the original failure.
Resolution Check
Repeat the exact failing command after the fix. Then rerun the nearest lab checkpoint and explain what changed in beginner-friendly terms.
04 同仓库更多 Skills
ill335-responses-api
Supports ILL335 model inference and sentiment-analysis labs that use the OpenAI Responses API with Microsoft Foundry. Use for Labs 3-5, responses.create, output_text, previous_response_id, structured JSON, model comparison, or Responses API errors.
ill335-lab-navigator
Guides learners through Frontier Tour ILL335, Building & Deploying AI Agents with Microsoft Foundry. Use when a learner asks where to start, what lab to complete next, how the labs connect, or how to resume the workshop.
ill335-hosted-agent
Supports the ILL335 Microsoft Foundry hosted-agent lab. Use for Lab 6, Agent Framework, FoundryChatClient, ResponsesHostServer, direct code deployment, unified azure.yaml, microsoft.foundry, local readiness checks, azd up, azd deploy, agent invocation, evaluation generation, or deployment troubleshooting.
ill335-devcontainer
Prepares and validates the ILL335 BYOD development container. Use for dev containers, GitHub Codespaces, Docker workspace setup, prebuilds, cached builds, rebuilds, container startup, virtual-environment conflicts, or workspace dependency installation failures.