Files
Eduard van Valkenburg aab621f5eb Python: Fix tool normalization and provider sample consolidation (#3953)
* Fix tool normalization and provider samples

- restore callable/single-tool normalization paths and unset tool-choice behavior\n- consolidate and expand chat/provider samples (OpenAI/Azure/Anthropic/Ollama/Bedrock)\n- migrate Bedrock lazy import surface to agent_framework.amazon and move provider samples

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* small fix in sample

* Finalize provider, samples, and core cleanup

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix CopilotTool passthrough in agent

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix link

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
aab621f5eb ยท 2026-02-16 16:30:38 +00:00
History
..

Foundry Local Examples

This folder contains examples demonstrating how to run local models with FoundryLocalClient via agent_framework.microsoft.

Prerequisites

  1. Install Foundry Local and required local runtime components.

  2. Install the connector package:

    pip install agent-framework-foundry-local --pre
    

Examples

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_ID: Optional model alias/ID to use by default when model_id is not passed to FoundryLocalClient.