call_foundry_agent

Execute prompts against Azure Foundry agents and retrieve responses.

2|2|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/nickhou1983/github-copilot-hands-on --skill call-foundry-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: call_foundry_agent
Source: https://github.com/nickhou1983/github-copilot-hands-on/tree/main/.github/skills/call_foundry_agent
Command: npx skills add https://github.com/nickhou1983/github-copilot-hands-on --skill call-foundry-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires azure-identity, python-dotenv, azure-ai-projects, and includes scripts (resource) components.

What problem does it solve?

This Skill enables users to programmatically interact with Azure Foundry agents, allowing for automated task execution and information retrieval through natural language prompts.

Core Features & Use Cases

  • Agent Interaction: Send prompts to specified Azure Foundry agents.
  • Response Retrieval: Obtain and display the agent's response.
  • Parameter Configuration: Supports specifying agent name and endpoint, with sensible defaults from environment variables.
  • Use Case: Automate customer support inquiries by sending user questions to a Foundry agent trained to handle them, and then logging the agent's answers.

Quick Start

Call the Foundry agent with the prompt "What is the current weather in London?".

Frequently Asked Questions about call_foundry_agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate prompts against Azure Foundry agents in Python?

The AI Projects SDK facilitates programmatic interaction with Azure Foundry agents to retrieve responses. It enables automated workflows by sending natural language prompts to specified agents for tasks such as information retrieval and task execution.

How do I configure environment variables for Azure Foundry agent interaction?

To configure Azure Foundry agent interaction, set specific environment variables for the endpoint and agent name. The Skill uses these as sensible defaults, allowing you to target the correct agent instance without hardcoding parameters.

Do I need DefaultAzureCredential to authenticate with Azure AI agents?

Yes, DefaultAzureCredential is required for authentication when interacting with Azure AI agents. It provides the necessary identity verification to securely execute prompts and retrieve responses from the Azure Foundry service.

Can I use the Azure AI SDK for Python to retrieve responses from a Foundry agent?

Yes, the Azure AI SDK for Python is a required dependency to retrieve responses from a Foundry agent. It enables you to send prompts to the specified agent and obtain the resulting information or task execution output.

What are the limitations of using environment variables to specify Azure Foundry agents?

Using environment variables to specify Azure Foundry agents limits dynamic agent switching within a single workflow. While providing sensible defaults for endpoint and agent name, it requires environment reconfiguration to target a different agent instance.