Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4693,6 +4693,10 @@ def test_responses_stream_method_without_content_recording(self, **kwargs):
attributes_match = GenAiTraceVerifier().check_span_attributes(span, expected_attributes)
assert attributes_match == True

@pytest.mark.skip(
reason="Fails with pydantic>=2.13.0b2 / pydantic-core>=2.42.0: MockValSer is not accepted as SchemaSerializer, "
"causing TypeError when iterating responses.stream() that includes function tools (not related to instrumentation)"
)
@pytest.mark.usefixtures("instrument_with_content")
@servicePreparer()
@recorded_by_proxy(RecordedTransport.HTTPX)
Expand Down Expand Up @@ -4800,6 +4804,10 @@ def test_responses_stream_method_with_tools_with_content_recording(self, **kwarg
# Validate second span (tool output + final response)
_span2 = spans[1] # pylint: disable=unused-variable

@pytest.mark.skip(
reason="Fails with pydantic>=2.13.0b2 / pydantic-core>=2.42.0: MockValSer is not accepted as SchemaSerializer, "
"causing TypeError when iterating responses.stream() that includes function tools (not related to instrumentation)"
)
@pytest.mark.usefixtures("instrument_without_content")
@servicePreparer()
@recorded_by_proxy(RecordedTransport.HTTPX)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=too-many-lines,line-too-long,useless-suppression
# pylint: disable=too-many-lines,line-too-long,useless-suppression
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Expand Down Expand Up @@ -2922,20 +2922,32 @@ async def _test_async_responses_stream_method_with_tools_with_content_recording_
events_match = GenAiTraceVerifier().check_span_events(span2, expected_events_2)
assert events_match == True

@pytest.mark.skip(
reason="Fails with pydantic>=2.13.0b2 / pydantic-core>=2.42.0: MockValSer is not accepted as SchemaSerializer, "
"causing TypeError when iterating responses.stream() that includes function tools (not related to instrumentation)"
)
@pytest.mark.usefixtures("instrument_with_content")
@servicePreparer()
@recorded_by_proxy_async(RecordedTransport.HTTPX)
async def test_async_responses_stream_method_with_tools_with_content_recording_events(self, **kwargs):
"""Test async responses.stream() with tools and content recording (event-based messages)."""
await self._test_async_responses_stream_method_with_tools_with_content_recording_impl(True, **kwargs)

@pytest.mark.skip(
reason="Fails with pydantic>=2.13.0b2 / pydantic-core>=2.42.0: MockValSer is not accepted as SchemaSerializer, "
"causing TypeError when iterating responses.stream() that includes function tools (not related to instrumentation)"
)
@pytest.mark.usefixtures("instrument_with_content")
@servicePreparer()
@recorded_by_proxy_async(RecordedTransport.HTTPX)
async def test_async_responses_stream_method_with_tools_with_content_recording_attributes(self, **kwargs):
"""Test async responses.stream() with tools and content recording (attribute-based messages)."""
await self._test_async_responses_stream_method_with_tools_with_content_recording_impl(False, **kwargs)

@pytest.mark.skip(
reason="Fails with pydantic>=2.13.0b2 / pydantic-core>=2.42.0: MockValSer is not accepted as SchemaSerializer, "
"causing TypeError when iterating responses.stream() that includes function tools (not related to instrumentation)"
)
@pytest.mark.usefixtures("instrument_with_content")
@servicePreparer()
@recorded_by_proxy_async(RecordedTransport.HTTPX)
Expand All @@ -2945,6 +2957,10 @@ async def test_async_responses_stream_method_with_tools_with_content_recording_s
True, use_simple_tool_call_format=True, **kwargs
)

@pytest.mark.skip(
reason="Fails with pydantic>=2.13.0b2 / pydantic-core>=2.42.0: MockValSer is not accepted as SchemaSerializer, "
"causing TypeError when iterating responses.stream() that includes function tools (not related to instrumentation)"
)
@pytest.mark.usefixtures("instrument_with_content")
@servicePreparer()
@recorded_by_proxy_async(RecordedTransport.HTTPX)
Expand Down Expand Up @@ -3155,20 +3171,32 @@ async def _test_async_responses_stream_method_with_tools_without_content_recordi
events_match = GenAiTraceVerifier().check_span_events(span2, expected_events_2)
assert events_match == True

@pytest.mark.skip(
reason="Fails with pydantic>=2.13.0b2 / pydantic-core>=2.42.0: MockValSer is not accepted as SchemaSerializer, "
"causing TypeError when iterating responses.stream() that includes function tools (not related to instrumentation)"
)
@pytest.mark.usefixtures("instrument_without_content")
@servicePreparer()
@recorded_by_proxy_async(RecordedTransport.HTTPX)
async def test_async_responses_stream_method_with_tools_without_content_recording_events(self, **kwargs):
"""Test async responses.stream() with tools, without content recording (event-based messages)."""
await self._test_async_responses_stream_method_with_tools_without_content_recording_impl(True, **kwargs)

@pytest.mark.skip(
reason="Fails with pydantic>=2.13.0b2 / pydantic-core>=2.42.0: MockValSer is not accepted as SchemaSerializer, "
"causing TypeError when iterating responses.stream() that includes function tools (not related to instrumentation)"
)
@pytest.mark.usefixtures("instrument_without_content")
@servicePreparer()
@recorded_by_proxy_async(RecordedTransport.HTTPX)
async def test_async_responses_stream_method_with_tools_without_content_recording_attributes(self, **kwargs):
"""Test async responses.stream() with tools, without content recording (attribute-based messages)."""
await self._test_async_responses_stream_method_with_tools_without_content_recording_impl(False, **kwargs)

@pytest.mark.skip(
reason="Fails with pydantic>=2.13.0b2 / pydantic-core>=2.42.0: MockValSer is not accepted as SchemaSerializer, "
"causing TypeError when iterating responses.stream() that includes function tools (not related to instrumentation)"
)
@pytest.mark.usefixtures("instrument_without_content")
@servicePreparer()
@recorded_by_proxy_async(RecordedTransport.HTTPX)
Expand All @@ -3180,6 +3208,10 @@ async def test_async_responses_stream_method_with_tools_without_content_recordin
True, use_simple_tool_call_format=True, **kwargs
)

@pytest.mark.skip(
reason="Fails with pydantic>=2.13.0b2 / pydantic-core>=2.42.0: MockValSer is not accepted as SchemaSerializer, "
"causing TypeError when iterating responses.stream() that includes function tools (not related to instrumentation)"
)
@pytest.mark.usefixtures("instrument_without_content")
@servicePreparer()
@recorded_by_proxy_async(RecordedTransport.HTTPX)
Expand Down