Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

feat: extract think tags from reasoning models (#3835)

bytecii5bbda10b5dc6
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index fa7a7e8c0..128476de3 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -26,7 +26,7 @@ body:
attributes:
label: What version of camel are you using?
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
- placeholder: E.g., 0.2.87
+ placeholder: E.g., 0.2.88
validations:
required: true
diff --git a/camel/__init__.py b/camel/__init__.py
index 256e8bc68..ea080c6bb 100644
--- a/camel/__init__.py
+++ b/camel/__init__.py
@@ -14,7 +14,7 @@
from camel.logger import disable_logging, enable_logging, set_log_level
-__version__ = '0.2.87'
+__version__ = '0.2.88'
__all__ = [
'__version__',
diff --git a/camel/agents/chat_agent.py b/camel/agents/chat_agent.py
index 4501e6802..537df6bea 100644
--- a/camel/agents/chat_agent.py
+++ b/camel/agents/chat_agent.py
@@ -84,6 +84,7 @@ from camel.models import (
ModelManager,
ModelProcessingError,
)
+from camel.models._utils import extract_thinking_from_content
from camel.prompts import TextPrompt
from camel.responses import ChatAgentResponse
from camel.storages import JsonStorage
@@ -4561,6 +4562,16 @@ class ChatAgent(BaseAgent):
content_accumulator.get_full_reasoning_content()
or None
)
+
+ # Extract <think> tags from accumulated
+ # streaming content when reasoning_content
+ # is not already set by the model.
+ final_content, final_reasoning = (
+ extract_thinking_from_content(
+ final_content, final_reasoning
+ )
+ )
+
final_message = BaseMessage(
role_name=self.role_name,
role_type=self.role_type,
@@ -4592,6 +4603,16 @@ class ChatAgent(BaseAgent):
content_accumulator.get_full_reasoning_content()
or None
)
+
+ # Extract <think> tags from accumulated
+ # streaming content when reasoning_content
+ # is not already set by the model.
+ final_content, final_reasoning = (
+ extract_thinking_from_content(
+ final_content, final_reasoning
+ )
+ )
+
# In delta mode, final response content should be empty
# since all content was already yielded incrementally
display_content = (
@@ -5596,11 +5617,26 @@ class ChatAgent(BaseAgent):
# will handle message recording.
final_content = content_accumulator.get_full_content()
if final_content.strip() and not accumulated_tool_calls:
+ final_reasoning = (
+ content_accumulator.get_full_reasoning_content()
+ or None
+ )
+
+ # Extract <think> tags from accumulated
+ # streaming content when reasoning_content
+ # is not already set by the model.
+ final_content, final_reasoning = (
+ extract_thinking_from_content(
+ final_content, final_reasoning
+ )
+ )
+
final_message = BaseMessage(
role_name=self.role_name,
role_type=self.role_type,
meta_dict={},
content=final_content,
+ reasoning_content=final_reasoning,
)
if response_format:
@@ -5626,6 +5662,16 @@ class ChatAgent(BaseAgent):
content_accumulator.get_full_reasoning_content()
or None
)
+
+ # Extract <think> tags from accumulated
+ # streaming content when reasoning_content
+ # is not already set by the model.
+ final_content, final_reasoning = (
+ extract_thinking_from_content(
+ final_content, final_reasoning
+ )
+ )
+
# In delta mode, final response content should be empty
# since all content was already yielded incrementally
display_content = (
diff --git a/camel/models/_utils.py b/camel/models/_utils.py
index 1008fdf49..d12f54ea3 100644
--- a/camel/models/_utils.py
+++ b/camel/models/_utils.py
@@ -11,17 +11,62 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ========= Copyright 2023-2026 @ CAMEL-AI.org. All Rights Reserved. =========
+import re
import textwrap
-from typing import Optional, Type
+from typing import Type
from pydantic import BaseModel
from camel.messages import OpenAIMessage
+def extract_thinking_from_content(
+ content: str,
+ reasoning_content: str | None = None,
+) -> tuple[str, str | None]:
+ r"""Extract ``<think>`` tags from content into reasoning_content.
+
+ Used for both pre-processing (stripping ``<think>`` tags from
+ input messages before sending to the model) and post-processing
+ (extracting ``<think>`` tags from model output into the
+ ``reasoning_content`` field).
+
+ If the content contains ``<think>...</think>`` tags and
+ ``reasoning_content`` is not already set, extracts the thinking
+ content and returns cleaned content with the reasoning.
+
+ Args:
+ content (str): The response content that may contain
+ ``<think>`` tags.
+ reasoning_content (str | None): Existing reasoning content.
+ If already set, no extraction is performed.
+ (default: :obj:`None`)
+
+ Returns:
+ tuple[str, str | None]: A tuple of (cleaned_content,
+ reasoning_content). If no extraction was needed, returns
+ the original values unchanged.
+ """
+ if reasoning_content is not None:
+ return content, reasoning_content
+ if '<think>' not in content or '</think>' not in content:
+ return content, reasoning_content
+
+ think_match = re.search(r'<think>(.*?)</think>', content, flags=re.DOTALL)
+ if think_match:
+ extracted = think_match.group(1).strip()
+ # Only set reasoning_content if there's actual content
+ if extracted:
+ reasoning_content = extracted
+ content = re.sub(
+ r'<think>.*?</think>', '', content, flags=re.DOTALL
+ ).strip()
+ return content, reasoning_content
+
+
def try_modify_message_with_format(
message: OpenAIMessage,
- response_format: Optional[Type[BaseModel]],
+ response_format: Type[BaseModel] | None,
) -> None:
r"""Modifies the content of the message to include the instruction of using
the response format.
@@ -32,7 +77,7 @@ def try_modify_message_with_format(
- message role is assistant
Args:
- response_format (Optional[Type[BaseModel]]): The Pydantic model class.
+ response_format (Type[BaseModel] | None): The Pydantic model class.
message (OpenAIMessage): The message to be modified.
"""
if response_format is None:
diff --git a/camel/models/base_model.py b/camel/models/base_model.py
index 2fde05805..3571da210 100644
--- a/camel/models/base_model.py
+++ b/camel/models/base_model.py
@@ -14,7 +14,6 @@
import abc
import inspect
import os
-import re
from abc import ABC, abstractmethod
from typing import (
Any,
@@ -193,15 +192,17 @@ class _AsyncStreamWrapper(_StreamLogger):
class ModelBackendMeta(abc.ABCMeta):
- r"""Metaclass that automatically preprocesses messages in run method.
+ r"""Metaclass that automatically pre/post-processes the run method.
- Automatically wraps the run method of any class inheriting from
- BaseModelBackend to preprocess messages (remove <think> tags) before they
- are sent to the model.
+ Automatically wraps the run and arun methods of any class inheriting from
+ BaseModelBackend to:
+ - Preprocess messages (remove <think> tags) before sending to the model.
+ - Postprocess responses (extract <think> tags into reasoning_content)
+ after receiving from the model.
"""
def __new__(mcs, name, bases, namespace):
- r"""Wraps run method with preprocessing if it exists in the class."""
+ r"""Wraps run/arun methods with pre/post-processing."""
if 'run' in namespace:
original_run = namespace['run']
@@ -209,9 +210,25 @@ class ModelBackendMeta(abc.ABCMeta):
self, messages: List[OpenAIMessage], *args, **kwargs
):
messages = self.preprocess_messages(messages)
- return original_run(self, messages, *args, **kwargs)
+ result = original_run(self, messages, *args, **kwargs)
+ result = self.postprocess_response(result)
+ return result
namespace['run'] = wrapped_run
+
+ if 'arun' in namespace:
+ original_arun = namespace['arun']
+
+ async def wrapped_arun(
+ self, messages: List[OpenAIMessage], *args, **kwargs
+ ):
+ messages = self.preprocess_messages(messages)
+ result = await original_arun(self, messages, *args, **kwargs)
+ result = self.postprocess_response(result)
+ return result
+
+ namespace['arun'] = wrapped_arun
+
return super().__new__(mcs, name, bases, namespace)
@@ -235,6 +252,13 @@ class BaseModelBackend(ABC, metaclass=ModelBackendMeta):
API calls. (default: :obj:`None`)
max_retries (int, optional): Maximum number of retries
for API calls. (default: :obj:`3`)
+ extract_thinking_from_response (bool, optional): Whether to
+ extract ``<think>`` tags from model response content into
+ the ``reasoning_content`` field. When enabled, if a model
+ embeds reasoning in ``<think>`` tags within the response
+ content (and ``reasoning_content`` is not already set),
+ the tags will be extracted into ``reasoning_content`` and
+ removed from ``content``. (default: :obj:`True`)
"""
def __init__(
@@ -246,6 +270,7 @@ class BaseModelBackend(ABC, metaclass=ModelBackendMeta):
token_counter: Optional[BaseTokenCounter] = None,
timeout: Optional[float] = Constants.TIMEOUT_THRESHOLD,
max_retries: int = 3,
+ extract_thinking_from_response: bool = True,
) -> None:
self.model_type: UnifiedModelType = UnifiedModelType(model_type)
if model_config_dict is None:
@@ -256,6 +281,7 @@ class BaseModelBackend(ABC, metaclass=ModelBackendMeta):
self._token_counter = token_counter
self._timeout = timeout
self._max_retries = max_retries
+ self._extract_thinking_from_response = extract_thinking_from_response
# Initialize logging configuration
self._log_enabled = (
os.environ.get("CAMEL_MODEL_LOG_ENABLED", "False").lower()
@@ -324,15 +350,18 @@ class BaseModelBackend(ABC, metaclass=ModelBackendMeta):
tool_responses_buffer: Dict[str, OpenAIMessage] = {}
has_tool_calls = False
+ from camel.models._utils import extract_thinking_from_content
+
for msg in messages:
# Remove thinking content if needed
role = msg.get('role')
content = msg.get('content')
- if role in ['assistant', 'user'] and isinstance(content, str):
- if '<think>' in content and '</think>' in content:
- content = re.sub(
- r'<think>.*?</think>', '', content, flags=re.DOTALL
- ).strip()
+ if (
+ self._extract_thinking_from_response
+ and role in ['assistant', 'user']
+ and isinstance(content, str)
+ ):
+ content, _ = extract_thinking_from_content(content)
processed_msg = dict(msg)
processed_msg['content'] = content
else:
@@ -429,6 +458,59 @@ class BaseModelBackend(ABC, metaclass=ModelBackendMeta):
return formatted_messages
+ def postprocess_response(self, response: Any) -> Any:
+ r"""Postprocess model response to extract ``<think>`` tags.
+
+ For non-streaming responses, if the model embeds reasoning in
+ ``<think>`` tags within the response content (and
+ ``reasoning_content`` is not already set), extracts the content
+ of the tags into ``reasoning_content`` and removes them from
+ ``content``.
+
+ Streaming responses and other non-ChatCompletion types are
+ returned as-is.
+
+ Args:
+ response: The model response. May be a
+ :obj:`ChatCompletion`, a streaming object, or other
+ types.
+
+ Returns:
+ The response, potentially with ``reasoning_content``
+ populated and ``content`` cleaned.
+ """
+ # Skip streaming responses — they are handled downstream
+ if (
+ isinstance(response, (Stream, AsyncStream))
+ or inspect.isgenerator(response)
+ or inspect.isasyncgen(response)
+ ):
+ return response
+
+ if not self._extract_thinking_from_response:
+ return response
+
+ if not hasattr(response, 'choices') or not response.choices:
+ return response
+
+ from camel.models._utils import extract_thinking_from_content
+
+ for choice in response.choices:
+ message = getattr(choice, 'message', None)
+ if message is None:
+ continue
+ content = getattr(message, 'content', None)
+ if not isinstance(content, str):
+ continue
+ existing = getattr(message, 'reasoning_content', None)
+ message.content, reasoning = extract_thinking_from_content(
+ content, existing
+ )
+ if reasoning is not None:
+ message.reasoning_content = reasoning
+
+ return response
+
def _log_request(self, messages: List[OpenAIMessage]) -> Optional[str]:
r"""Log the request messages to a JSON file if logging is enabled.
diff --git a/docs/conf.py b/docs/conf.py
index d16f2b9e3..e18755655 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -27,7 +27,7 @@ sys.path.insert(0, os.path.abspath('..'))
project = 'CAMEL'
copyright = '2024, CAMEL-AI.org'
author = 'CAMEL-AI.org'
-release = '0.2.87'
+release = '0.2.88'
html_favicon = (
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'
diff --git a/pyproject.toml b/pyproject.toml
index b77019cfe..446a4cdb2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "camel-ai"
-version = "0.2.87"
+version = "0.2.88"
description = "Communicative Agents for AI Society Study"
authors = [{ name = "CAMEL-AI.org" }]
requires-python = ">=3.10,<3.15"
diff --git a/test/models/test_base_model.py b/test/models/test_base_model.py
index f3326602a..d93379b6c 100644
--- a/test/models/test_base_model.py
+++ b/test/models/test_base_model.py
@@ -15,6 +15,10 @@
import uuid
+import pytest
+from openai.types.chat import ChatCompletion, ChatCompletionMessage
+from openai.types.chat.chat_completion import Choice
+
from camel.models import BaseModelBackend
from camel.types import ModelType
@@ -437,3 +441,200 @@ class TestBaseModelBackend:
processed[3]['role'] == 'assistant'
and processed[3]['content'] == 'The weather is 72°F.'
)
+
+ def _make_completion(self, content, reasoning_content=None):
+ r"""Helper to create a ChatCompletion with given content."""
+ msg = ChatCompletionMessage(role='assistant', content=content)
+ if reasoning_content is not None:
+ msg.reasoning_content = reasoning_content
+ return ChatCompletion(
+ id='test',
+ model='test',
+ object='chat.completion',
+ created=0,
+ choices=[Choice(index=0, finish_reason='stop', message=msg)],
+ )
+
+ def _make_model(self, extract_thinking_from_response=True):
+ r"""Helper to create a DummyModel for postprocess tests."""
+
+ class DummyModel(BaseModelBackend):
+ @property
+ def token_counter(self):
+ pass
+
+ def run(self, messages):
+ pass
+
+ def _run(self, messages, response_format=None, tools=None):
+ pass
+
+ async def _arun(self, messages, response_format=None, tools=None):
+ pass
+
+ return DummyModel(
+ ModelType.GPT_4O_MINI,
+ extract_thinking_from_response=extract_thinking_from_response,
+ )
+
+ def test_postprocess_extracts_think_tags(self):
+ r"""Test that postprocess_response extracts <think> tags into
+ reasoning_content."""
+ model = self._make_model()
+ response = self._make_completion('<think>reasoning here</think>\n\n4')
+
+ result = model.postprocess_response(response)
+ assert result.choices[0].message.content == '4'
+ assert result.choices[0].message.reasoning_content == 'reasoning here'
+
+ def test_postprocess_multiline_think_tags(self):
+ r"""Test extraction of multiline think tags."""
+ model = self._make_model()
+ response = self._make_completion(
+ '<think>\nline1\nline2\n</think>\n\nanswer'
+ )
+
+ result = model.postprocess_response(response)
+ assert result.choices[0].message.content == 'answer'
+ assert result.choices[0].message.reasoning_content == 'line1\nline2'
+
+ def test_postprocess_no_think_tags(self):
+ r"""Test that content without think tags is unchanged."""
+ model = self._make_model()
+ response = self._make_completion('just a normal response')
+
+ result = model.postprocess_response(response)
+ assert result.choices[0].message.content == 'just a normal response'
+ assert (
+ getattr(result.choices[0].message, 'reasoning_content', None)
+ is None
+ )
+
+ def test_postprocess_preserves_existing_reasoning_content(self):
+ r"""Test that existing reasoning_content is not overridden."""
+ model = self._make_model()
+ response = self._make_completion(
+ '<think>in content</think>\n\n4',
+ reasoning_content='already set',
+ )
+
+ result = model.postprocess_response(response)
+ # Content should NOT be cleaned since reasoning_content exists
+ assert (
+ result.choices[0].message.content
+ == '<think>in content</think>\n\n4'
+ )
+ assert result.choices[0].message.reasoning_content == 'already set'
+
+ @pytest.mark.parametrize("extract_thinking_from_response", [True, False])
+ def test_think_tags(self, extract_thinking_from_response):
+ r"""Test that extract_thinking_from_response controls both
+ preprocessing (input) and postprocessing (output) of think tags."""
+ model = self._make_model(
+ extract_thinking_from_response=extract_thinking_from_response
+ )
+
+ # Test preprocessing
+ messages = [
+ {
+ 'role': 'assistant',
+ 'content': '<think>thinking</think>Response',
+ },
+ {
+ 'role': 'user',
+ 'content': 'Hello <think>thought</think> world',
+ },
+ ]
+ processed = model.preprocess_messages(messages)
+
+ # Test postprocessing
+ response = self._make_completion('<think>reasoning here</think>\n\n4')
+ result = model.postprocess_response(response)
+
+ if extract_thinking_from_response:
+ # Preprocessing: think tags should be stripped
+ assert processed[0]['content'] == 'Response'
+ assert processed[1]['content'] == 'Hello world'
+ # Postprocessing: think tags extracted into reasoning_content
+ assert result.choices[0].message.content == '4'
+ assert (
+ result.choices[0].message.reasoning_content == 'reasoning here'
+ )
+ else:
+ # Preprocessing: think tags should be preserved
+ assert processed[0]['content'] == '<think>thinking</think>Response'
+ assert (
+ processed[1]['content'] == 'Hello <think>thought</think> world'
+ )
+ # Postprocessing: think tags should be preserved
+ assert (
+ result.choices[0].message.content
+ == '<think>reasoning here</think>\n\n4'
+ )
+ assert (
+ getattr(result.choices[0].message, 'reasoning_content', None)
+ is None
+ )
+
+ def test_postprocess_multiple_think_tags(self):
+ r"""Test extraction with multiple think tags in content."""
+ model = self._make_model()
+ response = self._make_completion(
+ '<think>first thought</think> middle '
+ '<think>second thought</think> end'
+ )
+
+ result = model.postprocess_response(response)
+ assert result.choices[0].message.content == 'middle end'
+ assert result.choices[0].message.reasoning_content == 'first thought'
+
+ def test_postprocess_empty_think_tags(self):
+ r"""Test that empty think tags are stripped without setting
+ reasoning_content."""
+ model = self._make_model()
+ response = self._make_completion('<think></think>content after')
+
+ result = model.postprocess_response(response)
+ assert result.choices[0].message.content == 'content after'
+
+ def test_metaclass_postprocessing(self):
+ r"""Test that metaclass wraps run with postprocessing."""
+
+ class TestModel(BaseModelBackend):
+ @property
+ def token_counter(self):
+ pass
+
+ def run(self, messages, response_format=None, tools=None):
+ return self._make_response()
+
+ def _run(self, messages, response_format=None, tools=None):
+ pass
+
+ async def _arun(self, messages, response_format=None, tools=None):
+ pass
+
+ def _make_response(self):
+ return ChatCompletion(
+ id='test',
+ model='test',
+ object='chat.completion',
+ created=0,
+ choices=[
+ Choice(
+ index=0,
+ finish_reason='stop',
+ message=ChatCompletionMessage(
+ role='assistant',
+ content='<think>thought</think>answer',
+ ),
+ )
+ ],
+ )
+
+ model = TestModel(ModelType.GPT_4O_MINI)
+ result = model.run([{'role': 'user', 'content': 'test'}])
+
+ # Metaclass should have applied postprocess_response
+ assert result.choices[0].message.content == 'answer'
+ assert result.choices[0].message.reasoning_content == 'thought'
diff --git a/uv.lock b/uv.lock
index dbf4c3c2d..d20f4e029 100644
--- a/uv.lock
+++ b/uv.lock
@@ -769,16 +769,16 @@ wheels = [
[[package]]
name = "botocore"
-version = "1.42.46"
+version = "1.42.47"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "jmespath" },
{ name = "python-dateutil" },
{ name = "urllib3" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/86/2d/6f6101f567a69c3b2ebe3f1f81bfd56eda9d5f6f466d0d919293499ab050/botocore-1.42.46.tar.gz", hash = "sha256:fc290b33aba6e271f627c4f46b8bcebfa1a94e19157d396732da417404158c01", size = 14948751, upload-time = "2026-02-10T20:37:58.663Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/ed/a6/d15f5dfe990abd76dbdb2105a7697e0d948e04c41dfd97c058bc76c7cebd/botocore-1.42.47.tar.gz", hash = "sha256:c26e190c1b4d863ba7b44dc68cc574d8eb862ddae5f0fe3472801daee12a0378", size = 14952255, upload-time = "2026-02-11T20:49:40.157Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/a0/88/5c2f4e65fe8dba7709a219b768e5ac89a112c6dde9527a5009cb82ee9124/botocore-1.42.46-py3-none-any.whl", hash = "sha256:f7459fcf586f38a3b0a242a172d3332141c770a3f5767bbb21e79d810db95d75", size = 14622519, upload-time = "2026-02-10T20:37:54.223Z" },
+ { url = "https://files.pythonhosted.org/packages/54/5e/50e3a59b243894088eeb949a654fb21d9ab7d0d703034470de016828d85a/botocore-1.42.47-py3-none-any.whl", hash = "sha256:c60f5feaf189423e17755aca3f1d672b7466620dd2032440b32aaac64ae8cac8", size = 14625351, upload-time = "2026-02-11T20:49:36.143Z" },
]
[[package]]
@@ -886,7 +886,7 @@ wheels = [
[[package]]
name = "camel-ai"
-version = "0.2.87"
+version = "0.2.88"
source = { editable = "." }
dependencies = [
{ name = "astor" },
@@ -2096,7 +2096,7 @@ wheels = [
[[package]]
name = "cohere"
-version = "5.20.4"
+version = "5.20.5"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "fastavro" },
@@ -2108,9 +2108,9 @@ dependencies = [
{ name = "types-requests" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/35/37/65af9c50b5d5772a5528c6a949799f98ae286b8ebb924e0fac0619b3ae88/cohere-5.20.4.tar.gz", hash = "sha256:3b3017048ff5d5b4f113180947d538ca3d0f274de5875f0345be4c8cb3d5119a", size = 180737, upload-time = "2026-02-05T14:47:54.639Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/cf/e9/a977a2f7093912e5bb7065589c913ad6887a5bdb3474886347fca53ed283/cohere-5.20.5.tar.gz", hash = "sha256:9db82263cf3c54a35b9bf44faf39e4b7fc3fc51a32a2634fc3680b99de069f31", size = 184819, upload-time = "2026-02-11T17:47:59.403Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/6d/14/5c5077c6b01aed7a18dfc5ab775a35c7a6cb118e5bc1dafcfc06abdb9d9e/cohere-5.20.4-py3-none-any.whl", hash = "sha256:9cc6ebb0adac3d9f96ac0efffde6a2484534fb0aec3684a62c250d49da958f29", size = 318987, upload-time = "2026-02-05T14:47:53.505Z" },
+ { url = "https://files.pythonhosted.org/packages/5b/83/70eccefd0608582bf7af6e99c69a56ee14048de741ba338824011f3bcf83/cohere-5.20.5-py3-none-any.whl", hash = "sha256:25b2ceae8ea52ed7f4a5f76da854f75536c348767d25ae5f9608eddb6945ee64", size = 323215, upload-time = "2026-02-11T17:47:57.803Z" },
]
[[package]]
@@ -3790,7 +3790,7 @@ wheels = [
[[package]]
name = "google-genai"
-version = "1.62.0"
+version = "1.63.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "anyio" },
@@ -3804,9 +3804,9 @@ dependencies = [
{ name = "typing-extensions" },
{ name = "websockets" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/94/4c/71b32b5c8db420cf2fd0d5ef8a672adbde97d85e5d44a0b4fca712264ef1/google_genai-1.62.0.tar.gz", hash = "sha256:709468a14c739a080bc240a4f3191df597bf64485b1ca3728e0fb67517774c18", size = 490888, upload-time = "2026-02-04T22:48:41.989Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/46/d7/07ec5dadd0741f09e89f3ff5f0ce051ce2aa3a76797699d661dc88def077/google_genai-1.63.0.tar.gz", hash = "sha256:dc76cab810932df33cbec6c7ef3ce1538db5bef27aaf78df62ac38666c476294", size = 491970, upload-time = "2026-02-11T23:46:28.472Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/09/5f/4645d8a28c6e431d0dd6011003a852563f3da7037d36af53154925b099fd/google_genai-1.62.0-py3-none-any.whl", hash = "sha256:4c3daeff3d05fafee4b9a1a31f9c07f01bc22051081aa58b4d61f58d16d1bcc0", size = 724166, upload-time = "2026-02-04T22:48:39.956Z" },
+ { url = "https://files.pythonhosted.org/packages/82/c8/ba32159e553fab787708c612cf0c3a899dafe7aca81115d841766e3bfe69/google_genai-1.63.0-py3-none-any.whl", hash = "sha256:6206c13fc20f332703ca7375bea7c191c82f95d6781c29936c6982d86599b359", size = 724747, upload-time = "2026-02-11T23:46:26.697Z" },
]
[[package]]
@@ -7439,7 +7439,7 @@ name = "pexpect"
version = "4.9.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
- { name = "ptyprocess", marker = "sys_platform != 'win32'" },
+ { name = "ptyprocess" },
]
sdist = { url = "https://files.pythonhosted.org/packages/42/92/cc564bf6381ff43ce1f4d06852fc19a2f11d180f23dc32d9588bee2f149d/pexpect-4.9.0.tar.gz", hash = "sha256:ee7d41123f3c9911050ea2c2dac107568dc43b2d3b0c7557a33212c398ead30f", size = 166450, upload-time = "2023-11-25T09:07:26.339Z" }
wheels = [
@@ -8340,7 +8340,9 @@ source = { registry = "https://pypi.org/simple" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/13/19/fde6ea4712a904b65e8f41124a0e4233879b87a770fe6a8ce857964de6d5/pymupdf-1.27.1-cp310-abi3-macosx_10_9_x86_64.whl", hash = "sha256:bee9f95512f9556dbf2cacfd1413c61b29a55baa07fa7f8fc83d221d8419888a", size = 23986707, upload-time = "2026-02-11T15:03:24.025Z" },
{ url = "https://files.pythonhosted.org/packages/75/c2/070dff91ad3f1bc16fd6c6ceff23495601fcce4c92d28be534417596418a/pymupdf-1.27.1-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:3de95a0889395b0966fafd11b94980b7543a816e89dd1c218597a08543ac3415", size = 23263493, upload-time = "2026-02-11T15:03:45.528Z" },
+ { url = "https://files.pythonhosted.org/packages/8e/db/937377f4b3e0fbf6273c17436a49f7db17df1a46b1be9e26653b6fafc0e1/pymupdf-1.27.1-cp310-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:2c9d9353b840040cbc724341f4095fb7e2cc1a12a9147d0ec1a0a79f5d773147", size = 24317651, upload-time = "2026-02-11T22:33:38.967Z" },
{ url = "https://files.pythonhosted.org/packages/72/d5/c701cf2d0cdd6e5d6bca3ca9188d7f5d7ce3ae67dd1368d658cd4bae2707/pymupdf-1.27.1-cp310-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:aeaed76e72cbc061149a825ab0811c5f4752970c56591c2938c5042ec06b26e1", size = 24945742, upload-time = "2026-02-11T15:04:06.21Z" },
+ { url = "https://files.pythonhosted.org/packages/2b/29/690202b38b93cf77b73a29c25a63a2b6f3fcb36b1f75006e50b8dee7c108/pymupdf-1.27.1-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4f1837554134fb45d390a44de8844b2ca9b6c901c82ccc90b340e3b7f3b126ca", size = 25167965, upload-time = "2026-02-11T22:36:35.478Z" },
{ url = "https://files.pythonhosted.org/packages/3e/99/fe4a7752990bf65277718fffbead4478de9afd1c7288d7a6d643f79a6fa7/pymupdf-1.27.1-cp310-abi3-win_amd64.whl", hash = "sha256:4b6268dff3a9d713034eba5c2ffce0da37c62443578941ac5df433adcde57b2f", size = 19236703, upload-time = "2026-02-11T15:04:19.607Z" },
]
@@ -8408,7 +8410,7 @@ name = "pyobjc-framework-cocoa"
version = "12.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
- { name = "pyobjc-core", marker = "(python_full_version >= '3.13' and sys_platform != 'win32') or sys_platform == 'darwin'" },
+ { name = "pyobjc-core", marker = "python_full_version >= '3.13' or sys_platform == 'darwin'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/02/a3/16ca9a15e77c061a9250afbae2eae26f2e1579eb8ca9462ae2d2c71e1169/pyobjc_framework_cocoa-12.1.tar.gz", hash = "sha256:5556c87db95711b985d5efdaaf01c917ddd41d148b1e52a0c66b1a2e2c5c1640", size = 2772191, upload-time = "2025-11-14T10:13:02.069Z" }
wheels = [
@@ -8426,8 +8428,8 @@ name = "pyobjc-framework-quartz"
version = "12.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
- { name = "pyobjc-core", marker = "(python_full_version >= '3.13' and sys_platform != 'win32') or sys_platform == 'darwin'" },
- { name = "pyobjc-framework-cocoa", marker = "(python_full_version >= '3.13' and sys_platform != 'win32') or sys_platform == 'darwin'" },
+ { name = "pyobjc-core", marker = "python_full_version >= '3.13' or sys_platform == 'darwin'" },
+ { name = "pyobjc-framework-cocoa", marker = "python_full_version >= '3.13' or sys_platform == 'darwin'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/94/18/cc59f3d4355c9456fc945eae7fe8797003c4da99212dd531ad1b0de8a0c6/pyobjc_framework_quartz-12.1.tar.gz", hash = "sha256:27f782f3513ac88ec9b6c82d9767eef95a5cf4175ce88a1e5a65875fee799608", size = 3159099, upload-time = "2025-11-14T10:21:24.31Z" }
wheels = [