@@ -96,10 +96,8 @@ def test_agentframework_trace_processor_integration(self, azure_openai_config, a
9696 async def run_agent ():
9797 result = await agent .run ("What can you do with agent framework?" )
9898 return result
99-
100- asyncio .run (setup_observability ())
10199 response = asyncio .run (run_agent ())
102-
100+ print ( f"Agent response: { response } " )
103101 # Give some time for spans to be processed
104102 time .sleep (1 )
105103
@@ -115,8 +113,8 @@ async def run_agent():
115113
116114 # Verify the response content
117115 assert response is not None
118- assert len (response ) > 0
119- print (f"Agent response: { response } " )
116+ assert len (response . text ) > 0
117+ print (f"Agent response: { response . text } " )
120118
121119 finally :
122120 # Clean up
@@ -183,9 +181,9 @@ async def run_agent_with_tool():
183181
184182 # Verify the response content includes the calculation result
185183 assert response is not None
186- assert len (response ) > 0
187- assert "42" in response # 15 + 27 = 42
188- print (f"Agent response with tool: { response } " )
184+ assert len (response . text ) > 0
185+ assert "42" in response . text # 15 + 27 = 42
186+ print (f"Agent response with tool: { response . text } " )
189187
190188 finally :
191189 # Clean up
@@ -204,8 +202,8 @@ def _validate_span_attributes(self, agent365_config):
204202 if TENANT_ID_KEY in attributes :
205203 assert attributes [TENANT_ID_KEY ] == agent365_config ["tenant_id" ]
206204
207- if GEN_AI_AGENT_ID_KEY in attributes :
208- assert attributes [GEN_AI_AGENT_ID_KEY ] == agent365_config ["agent_id" ]
205+ # if GEN_AI_AGENT_ID_KEY in attributes:
206+ # assert attributes[GEN_AI_AGENT_ID_KEY] == agent365_config["agent_id"]
209207
210208 # Check for LLM spans (generation spans)
211209 if GEN_AI_SYSTEM_KEY in attributes and attributes [GEN_AI_SYSTEM_KEY ] == "openai" :
@@ -251,8 +249,8 @@ def _validate_tool_span_attributes(self, agent365_config):
251249 if TENANT_ID_KEY in attributes :
252250 assert attributes [TENANT_ID_KEY ] == agent365_config ["tenant_id" ]
253251
254- if GEN_AI_AGENT_ID_KEY in attributes :
255- assert attributes [GEN_AI_AGENT_ID_KEY ] == agent365_config ["agent_id" ]
252+ # if GEN_AI_AGENT_ID_KEY in attributes:
253+ # assert attributes[GEN_AI_AGENT_ID_KEY] == agent365_config["agent_id"]
256254
257255 # Check for LLM spans (generation spans)
258256 if GEN_AI_SYSTEM_KEY in attributes and attributes [GEN_AI_SYSTEM_KEY ] == "openai" :
0 commit comments