Skip to content

Commit b704be7

Browse files
committed
format
1 parent 9ca6926 commit b704be7

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

tests/integration/test_agentframework_trace_processor.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def setup_method(self):
5656
def test_agentframework_trace_processor_integration(self, azure_openai_config, agent365_config):
5757
"""Test AgentFramework trace processor with real Azure OpenAI call."""
5858

59-
6059
# Configure observability
6160
configure(
6261
service_name="integration-test-service",
@@ -96,6 +95,7 @@ def test_agentframework_trace_processor_integration(self, azure_openai_config, a
9695
async def run_agent():
9796
result = await agent.run("What can you do with agent framework?")
9897
return result
98+
9999
response = asyncio.run(run_agent())
100100
print(f"Agent response: {response}")
101101
# Give some time for spans to be processed
@@ -120,7 +120,9 @@ async def run_agent():
120120
# Clean up
121121
instrumentor.uninstrument()
122122

123-
def test_agentframework_trace_processor_with_tool_calls(self, azure_openai_config, agent365_config):
123+
def test_agentframework_trace_processor_with_tool_calls(
124+
self, azure_openai_config, agent365_config
125+
):
124126
"""Test AgentFramework trace processor with tool calls."""
125127

126128
# Configure observability
@@ -159,7 +161,6 @@ def test_agentframework_trace_processor_with_tool_calls(self, azure_openai_confi
159161
# Execute a prompt that requires tool usage
160162
import asyncio
161163

162-
163164
async def run_agent_with_tool():
164165
result = await agent.run("What is 15 + 27?")
165166
return result
@@ -202,9 +203,6 @@ def _validate_span_attributes(self, agent365_config):
202203
if TENANT_ID_KEY in attributes:
203204
assert attributes[TENANT_ID_KEY] == agent365_config["tenant_id"]
204205

205-
#if GEN_AI_AGENT_ID_KEY in attributes:
206-
# assert attributes[GEN_AI_AGENT_ID_KEY] == agent365_config["agent_id"]
207-
208206
# Check for LLM spans (generation spans)
209207
if GEN_AI_SYSTEM_KEY in attributes and attributes[GEN_AI_SYSTEM_KEY] == "openai":
210208
if GEN_AI_REQUEST_MODEL_KEY in attributes:
@@ -249,9 +247,6 @@ def _validate_tool_span_attributes(self, agent365_config):
249247
if TENANT_ID_KEY in attributes:
250248
assert attributes[TENANT_ID_KEY] == agent365_config["tenant_id"]
251249

252-
#if GEN_AI_AGENT_ID_KEY in attributes:
253-
# assert attributes[GEN_AI_AGENT_ID_KEY] == agent365_config["agent_id"]
254-
255250
# Check for LLM spans (generation spans)
256251
if GEN_AI_SYSTEM_KEY in attributes and attributes[GEN_AI_SYSTEM_KEY] == "openai":
257252
if GEN_AI_REQUEST_MODEL_KEY in attributes:

0 commit comments

Comments
 (0)