db620d33df
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
dotnet-build-and-test / dotnet-test-functions (push) Has been cancelled
dotnet-build-and-test / paths-filter (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Debug, windows-latest, net9.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net8.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-foundry-hosted-it (push) Has been cancelled
dotnet-build-and-test / dotnet-build-and-test-check (push) Has been cancelled
dotnet-build-and-test / Integration Test Report (push) Has been cancelled
3.0 KiB
3.0 KiB
Foundry Provider Samples
This folder contains Azure AI Foundry and Foundry Local samples for Agent Framework.
FoundryAgent Samples
| File | Description |
|---|---|
foundry_agent_basic.py |
Foundry Agent basic example |
foundry_agent_custom_client.py |
Foundry Agent custom client configuration |
foundry_agent_hosted.py |
Foundry Agent for hosted agents |
foundry_agent_with_function_tools.py |
Foundry Agent with local function tools |
FoundryChatClient Samples
| File | Description |
|---|---|
foundry_chat_client.py |
Foundry Chat Client with project endpoint example |
foundry_chat_client_basic.py |
Foundry Chat Client basic example |
foundry_chat_client_code_interpreter_files.py |
Foundry Chat Client with code interpreter and files |
foundry_chat_client_image_analysis.py |
Foundry Chat Client with image analysis |
foundry_chat_client_with_code_interpreter.py |
Foundry Chat Client with code interpreter |
foundry_chat_client_with_explicit_settings.py |
Foundry Chat Client with explicit settings |
foundry_chat_client_with_file_search.py |
Foundry Chat Client with file search |
foundry_chat_client_with_function_tools.py |
Foundry Chat Client with function tools |
foundry_chat_client_with_hosted_mcp.py |
Foundry Chat Client with hosted MCP |
foundry_chat_client_with_local_mcp.py |
Foundry Chat Client with local MCP |
foundry_chat_client_with_session.py |
Foundry Chat Client with session management |
foundry_chat_client_with_toolbox.py |
Foundry Chat Client connected to a toolbox via its MCP endpoint using MCPStreamableHTTPTool |
foundry_chat_client_with_toolbox_skills.py |
Foundry Chat Client that discovers MCP-based skills from a Foundry Toolbox endpoint via MCPSkillsSource (uses an Azure AD bearer token and the toolbox preview header) |
FoundryLocalClient Samples
Prerequisites
-
Install Foundry Local and required local runtime components.
-
Install the connector package:
pip install agent-framework-foundry-local --pre
| File | Description |
|---|---|
foundry_local_agent.py |
Basic Foundry Local agent usage with streaming and non-streaming responses, plus function tool calling. |
Environment Variables
FOUNDRY_LOCAL_MODEL: Optional model alias/ID to use by default whenmodelis not passed toFoundryLocalClient.