File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
integrations/microsoft-agent-framework/python/examples/agents Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2222from fastapi import FastAPI
2323
2424from agent_framework .openai import OpenAIChatClient
25+ # TODO: Uncomment this when we have a way to authenticate with Azure
26+ # from azure.identity import DefaultAzureCredential
27+ # from agent_framework.azure import AzureOpenAIChatClient
2528from agent_framework_ag_ui import add_agent_framework_fastapi_endpoint
2629from agent_framework_ag_ui_examples .agents import (
2730 document_writer_agent ,
3235 ui_generator_agent ,
3336 weather_agent ,
3437)
35- from azure .identity import DefaultAzureCredential
3638
3739load_dotenv ()
3840
7880 model_id = deployment_name ,
7981 api_key = api_key ,
8082)
83+ # TODO: Uncomment this to authenticate with Azure
84+ # chat_client = AzureOpenAIChatClient(
85+ # credential=DefaultAzureCredential(),
86+ # deployment_name=deployment_name,
87+ # endpoint=endpoint,
88+ # )
8189
8290# Agentic Chat - simple_agent
8391add_agent_framework_fastapi_endpoint (app , simple_agent (chat_client ), "/agentic_chat" )
You can’t perform that action at this time.
0 commit comments