Python: Fix broken Content API imports in Python samples (#3639)

* Initial plan

* Fix broken import paths for Content API in all Python sample files

Co-authored-by: moonbox3 <35585003+moonbox3@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: moonbox3 <35585003+moonbox3@users.noreply.github.com>
This commit is contained in:
Copilot
2026-02-03 22:48:26 +00:00
committed by GitHub
Unverified
parent f56218fa1e
commit 96d3f2a55e
11 changed files with 30 additions and 30 deletions
@@ -2,7 +2,7 @@
import asyncio
from agent_framework import ChatMessage, TextContent, UriContent
from agent_framework import ChatMessage, Content
from agent_framework.azure import AzureOpenAIResponsesClient
from azure.identity import AzureCliCredential
@@ -27,8 +27,8 @@ async def main():
user_message = ChatMessage(
role="user",
contents=[
TextContent(text="What do you see in this image?"),
UriContent(
Content.from_text(text="What do you see in this image?"),
Content.from_uri(
uri="https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg",
media_type="image/jpeg",
),