mirascope 1.25.6__py3-none-any.whl → 1.25.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mirascope/core/anthropic/_utils/_message_param_converter.py +12 -0
- {mirascope-1.25.6.dist-info → mirascope-1.25.7.dist-info}/METADATA +1 -1
- {mirascope-1.25.6.dist-info → mirascope-1.25.7.dist-info}/RECORD +5 -5
- {mirascope-1.25.6.dist-info → mirascope-1.25.7.dist-info}/WHEEL +0 -0
- {mirascope-1.25.6.dist-info → mirascope-1.25.7.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import base64
|
|
2
|
+
import logging
|
|
2
3
|
from os import PathLike
|
|
3
4
|
from typing import cast
|
|
4
5
|
|
|
@@ -17,6 +18,8 @@ from mirascope.core.base._utils._base_message_param_converter import (
|
|
|
17
18
|
BaseMessageParamConverter,
|
|
18
19
|
)
|
|
19
20
|
|
|
21
|
+
logger = logging.getLogger(__name__)
|
|
22
|
+
|
|
20
23
|
|
|
21
24
|
class AnthropicMessageParamConverter(BaseMessageParamConverter):
|
|
22
25
|
"""Converts between Anthropic `MessageParam` objects and Mirascope `BaseMessageParam`."""
|
|
@@ -126,6 +129,15 @@ class AnthropicMessageParamConverter(BaseMessageParamConverter):
|
|
|
126
129
|
is_error=block.get("is_error", False),
|
|
127
130
|
)
|
|
128
131
|
)
|
|
132
|
+
elif block["type"] in [
|
|
133
|
+
"thinking",
|
|
134
|
+
"redacted_thinking",
|
|
135
|
+
]: # pragma: no cover
|
|
136
|
+
logger.warning(
|
|
137
|
+
"Dropping thinking content blocks as they are not supported at "
|
|
138
|
+
"the provider agnostic level in v1. For native thinking support "
|
|
139
|
+
"check out [v2](https://mirascope.com/docs/mirascope/v2)"
|
|
140
|
+
)
|
|
129
141
|
else:
|
|
130
142
|
# Any other block type is not supported
|
|
131
143
|
raise ValueError(
|
|
@@ -60,7 +60,7 @@ mirascope/core/anthropic/_utils/_convert_finish_reason_to_common_finish_reasons.
|
|
|
60
60
|
mirascope/core/anthropic/_utils/_convert_message_params.py,sha256=paDIPksOzZK5yhckUX8-3y5czUIWDxdWCwJmzI6rmEE,4270
|
|
61
61
|
mirascope/core/anthropic/_utils/_get_json_output.py,sha256=vkHvhc96RLrGREYVCKr14Umq80EUa7pCtlcImjXB5gA,1157
|
|
62
62
|
mirascope/core/anthropic/_utils/_handle_stream.py,sha256=6Ll2FQt1KWrz5jqgeP1NikHEjlrSbfPUQCH4eoX4eVA,4010
|
|
63
|
-
mirascope/core/anthropic/_utils/_message_param_converter.py,sha256=
|
|
63
|
+
mirascope/core/anthropic/_utils/_message_param_converter.py,sha256=pGzEMPyp3JLIXv64h73LI1s13yh7AnwJO7y12C2aCSg,6729
|
|
64
64
|
mirascope/core/anthropic/_utils/_setup_call.py,sha256=xPY6O7MMOwaot5xZSSHqyGyazJxVHPx77W20jZ-cK6E,4812
|
|
65
65
|
mirascope/core/azure/__init__.py,sha256=7Dpkf10T-TGxk7Lstej6x6s6On7QjI0qeE2ABO7QWmQ,852
|
|
66
66
|
mirascope/core/azure/_call.py,sha256=SHqSJe6_4zgn4Y9PkpDl4vXvLuT4QmVnWUcws9e_RR8,2237
|
|
@@ -372,7 +372,7 @@ mirascope/v0/base/ops_utils.py,sha256=1Qq-VIwgHBaYutiZsS2MUQ4OgPC3APyywI5bTiTAmA
|
|
|
372
372
|
mirascope/v0/base/prompts.py,sha256=FM2Yz98cSnDceYogiwPrp4BALf3_F3d4fIOCGAkd-SE,1298
|
|
373
373
|
mirascope/v0/base/types.py,sha256=ZfatJoX0Yl0e3jhv0D_MhiSVHLYUeJsdN3um3iE10zY,352
|
|
374
374
|
mirascope/v0/base/utils.py,sha256=XREPENRQTu8gpMhHU8RC8qH_am3FfGUvY-dJ6x8i-mw,681
|
|
375
|
-
mirascope-1.25.
|
|
376
|
-
mirascope-1.25.
|
|
377
|
-
mirascope-1.25.
|
|
378
|
-
mirascope-1.25.
|
|
375
|
+
mirascope-1.25.7.dist-info/METADATA,sha256=OQFqlGjtm2zzU6RkIL-Pm6WVZsB5qEiBc2dN2zZnjaQ,8542
|
|
376
|
+
mirascope-1.25.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
377
|
+
mirascope-1.25.7.dist-info/licenses/LICENSE,sha256=LAs5Q8mdawTsVdONpDGukwsoc4KEUBmmonDEL39b23Y,1072
|
|
378
|
+
mirascope-1.25.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|