Skip to content

Commit 29f52c1

Browse files
chore: add comments of previous Azure auth source
1 parent a97608a commit 29f52c1

File tree

1 file changed

+9
-1
lines changed
  • integrations/microsoft-agent-framework/python/examples/agents

1 file changed

+9
-1
lines changed

integrations/microsoft-agent-framework/python/examples/agents/dojo.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from fastapi import FastAPI
2323

2424
from 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
2528
from agent_framework_ag_ui import add_agent_framework_fastapi_endpoint
2629
from agent_framework_ag_ui_examples.agents import (
2730
document_writer_agent,
@@ -32,7 +35,6 @@
3235
ui_generator_agent,
3336
weather_agent,
3437
)
35-
from azure.identity import DefaultAzureCredential
3638

3739
load_dotenv()
3840

@@ -78,6 +80,12 @@
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
8391
add_agent_framework_fastapi_endpoint(app, simple_agent(chat_client), "/agentic_chat")

0 commit comments

Comments
 (0)