mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-30 19:59:40 +02:00
format
This commit is contained in:
@@ -107,7 +107,6 @@ def _evaluate_expression(expression: str) -> str:
|
||||
|
||||
|
||||
def get_math_tool(llm: ChatOpenAI):
|
||||
|
||||
prompt = ChatPromptTemplate.from_messages(
|
||||
[
|
||||
("system", _SYSTEM_PROMPT),
|
||||
|
||||
@@ -14,8 +14,8 @@ from typing import (
|
||||
from langchain_core.exceptions import OutputParserException
|
||||
from langchain_core.messages import BaseMessage
|
||||
from langchain_core.output_parsers.transform import BaseTransformOutputParser
|
||||
from langchain_core.tools import BaseTool
|
||||
from langchain_core.runnables import RunnableConfig
|
||||
from langchain_core.tools import BaseTool
|
||||
from typing_extensions import TypedDict
|
||||
|
||||
THOUGHT_PATTERN = r"Thought: ([^\n]*)"
|
||||
|
||||
Reference in New Issue
Block a user