File tree Expand file tree Collapse file tree 7 files changed +20
-7
lines changed
sdk/ai/azure-ai-agentserver-core
azure/ai/agentserver/core Expand file tree Collapse file tree 7 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 1+ # ---------------------------------------------------------
2+ # Copyright (c) Microsoft Corporation. All rights reserved.
3+ # ---------------------------------------------------------
14class Constants :
25 # well-known environment variables
36 APPLICATION_INSIGHTS_CONNECTION_STRING = "_AGENT_RUNTIME_APP_INSIGHTS_CONNECTION_STRING"
Original file line number Diff line number Diff line change 1+ # ---------------------------------------------------------
2+ # Copyright (c) Microsoft Corporation. All rights reserved.
3+ # ---------------------------------------------------------
14import contextvars
25import logging
36import os
@@ -53,7 +56,7 @@ def get_project_endpoint():
5356 return None
5457
5558
56- def get_application_insights_connection_string ():
59+ def get_application_insights_connstr ():
5760 try :
5861 conn_str = os .environ .get (Constants .APPLICATION_INSIGHTS_CONNECTION_STRING )
5962 if not conn_str :
@@ -97,7 +100,7 @@ def configure(log_config: dict = default_log_config):
97100 try :
98101 config .dictConfig (log_config )
99102
100- application_insights_connection_string = get_application_insights_connection_string ()
103+ application_insights_connection_string = get_application_insights_connstr ()
101104 enable_application_insights_logger = (
102105 os .environ .get (Constants .ENABLE_APPLICATION_INSIGHTS_LOGGER , "true" ).lower () == "true"
103106 )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # ---------------------------------------------------------
2+ # Copyright (c) Microsoft Corporation. All rights reserved.
3+ # ---------------------------------------------------------
14from ._create_response import CreateResponse # type: ignore
25from .projects import Response , ResponseStreamEvent
36
47__all__ = ["CreateResponse" , "Response" , "ResponseStreamEvent" ] # type: ignore[var-annotated]
5-
Original file line number Diff line number Diff line change 1+ # ---------------------------------------------------------
2+ # Copyright (c) Microsoft Corporation. All rights reserved.
3+ # ---------------------------------------------------------
14from typing import Optional
25
36from .openai import response_create_params
Original file line number Diff line number Diff line change 1- from openai .types .responses import * # type: ignore # noqa: F401,F403
1+ # ---------------------------------------------------------
2+ # Copyright (c) Microsoft Corporation. All rights reserved.
3+ # ---------------------------------------------------------
4+ from openai .types .responses import * # pylint: disable=unused-wildcard-import
25
3- __all__ = [name for name in globals () if not name .startswith ("_" )]
6+ __all__ = [name for name in globals () if not name .startswith ("_" )] # type: ignore[var-annotated]
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ dependencies = [
1313 " azure-ai-agents>=1.2.0b5" ,
1414 " azure-core>=1.35.0" ,
1515 " azure-identity" ,
16- " openai" ,
16+ " openai>=1.80.0 " ,
1717 " opentelemetry-api" ,
1818 " opentelemetry-exporter-otlp-proto-http" ,
1919 " starlette" ,
You can’t perform that action at this time.
0 commit comments