Skip to content

Commit

Permalink
Update ai.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonHonKL authored Mar 9, 2025
1 parent bde2b44 commit f20d60e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/core/langchain_core/messages/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ class AIMessage(BaseMessage):
This is a standard representation of token usage that is consistent across models.
"""

"""
reasoning message space for reasoning message like deepseek / o3-mini etc.

Check failure on line 168 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.10

Ruff (W291)

langchain_core/messages/ai.py:168:79: W291 Trailing whitespace

Check failure on line 168 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.12

Ruff (W291)

langchain_core/messages/ai.py:168:79: W291 Trailing whitespace

Check failure on line 168 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.11

Ruff (W291)

langchain_core/messages/ai.py:168:79: W291 Trailing whitespace

Check failure on line 168 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.13

Ruff (W291)

langchain_core/messages/ai.py:168:79: W291 Trailing whitespace

Check failure on line 168 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.9

Ruff (W291)

langchain_core/messages/ai.py:168:79: W291 Trailing whitespace
"""
reasoning_message:str = None

Check failure on line 170 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.10

Ruff (W291)

langchain_core/messages/ai.py:170:33: W291 Trailing whitespace

Check failure on line 170 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.12

Ruff (W291)

langchain_core/messages/ai.py:170:33: W291 Trailing whitespace

Check failure on line 170 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.11

Ruff (W291)

langchain_core/messages/ai.py:170:33: W291 Trailing whitespace

Check failure on line 170 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.13

Ruff (W291)

langchain_core/messages/ai.py:170:33: W291 Trailing whitespace

Check failure on line 170 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.9

Ruff (W291)

langchain_core/messages/ai.py:170:33: W291 Trailing whitespace

type: Literal["ai"] = "ai"
"""The type of the message (used for deserialization). Defaults to "ai"."""

Expand Down

0 comments on commit f20d60e

Please sign in to comment.