@@ -1273,7 +1273,7 @@ def simple_test_tool(message: str) -> str:
12731273 assert tool_span ["data" ]["gen_ai.tool.description" ] == "A simple tool"
12741274 assert tool_span ["data" ]["gen_ai.tool.input" ] == '{"message": "hello"}'
12751275 assert tool_span ["data" ]["gen_ai.tool.name" ] == "simple_test_tool"
1276- assert tool_span ["data" ]["gen_ai.tool.output" ] == "Tool executed with: hello"
1276+ assert tool_span ["data" ]["gen_ai.tool.output" ] == "' Tool executed with: hello' "
12771277 assert ai_client_span2 ["description" ] == "chat gpt-4"
12781278 assert ai_client_span2 ["data" ]["gen_ai.agent.name" ] == "test_agent"
12791279 assert ai_client_span2 ["data" ]["gen_ai.operation.name" ] == "chat"
@@ -1904,7 +1904,8 @@ async def test_mcp_tool_execution_spans(
19041904 assert mcp_tool_span ["data" ]["gen_ai.tool.name" ] == "test_mcp_tool"
19051905 assert mcp_tool_span ["data" ]["gen_ai.tool.input" ] == '{"query": "search term"}'
19061906 assert (
1907- mcp_tool_span ["data" ]["gen_ai.tool.output" ] == "MCP tool executed successfully"
1907+ mcp_tool_span ["data" ]["gen_ai.tool.output" ]
1908+ == "'MCP tool executed successfully'"
19081909 )
19091910
19101911 # Verify no error status since error was None
@@ -2031,7 +2032,7 @@ async def test_mcp_tool_execution_with_error(
20312032 assert mcp_tool_span ["description" ] == "execute_tool failing_mcp_tool"
20322033 assert mcp_tool_span ["data" ]["gen_ai.tool.name" ] == "failing_mcp_tool"
20332034 assert mcp_tool_span ["data" ]["gen_ai.tool.input" ] == '{"query": "test"}'
2034- assert mcp_tool_span ["data" ]["gen_ai.tool.output" ] is None
2035+ assert mcp_tool_span ["data" ]["gen_ai.tool.output" ] == " None"
20352036
20362037 # Verify error status was set
20372038 assert mcp_tool_span ["status" ] == "internal_error"
0 commit comments