
from agent-framework12,593
Resolves sample failures by replacing hardcoded Foundry project endpoints and models with environment variables.
https://your-project.services.ai.azure.com) are hardcoded in the FoundryChatClient constructor and replaces them with dynamic reads from the environment.\n\n## When to use it\nUse this skill when a sample script fails because it contains placeholder endpoint or model values instead of using the project's actual configuration provided by the validation environment.\n\n## What's included\n- Instructions: A clear three-step process to import os and swap hardcoded strings for os.environ['FOUNDRY_PROJECT_ENDPOINT'] and os.environ['FOUNDRY_MODEL'].\n\n## Compatible agents\nDesigned for agents operating within the Microsoft Agent Framework ecosystem, specifically those tasked with validating or running sample code.This skill has not been reviewed by our automated audit pipeline yet.