mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-06 09:47:51 +02:00
ci: fix docs runner (#3010)
This commit is contained in:
@@ -1032,7 +1032,9 @@
|
||||
") # You can optionally add examples\n",
|
||||
"llm = ChatOpenAI(model=\"gpt-4-turbo-preview\")\n",
|
||||
"\n",
|
||||
"runnable = joiner_prompt | llm.with_structured_output(JoinOutputs)"
|
||||
"runnable = joiner_prompt | llm.with_structured_output(\n",
|
||||
" JoinOutputs, method=\"function_calling\"\n",
|
||||
")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -114,7 +114,9 @@ def get_math_tool(llm: ChatOpenAI):
|
||||
MessagesPlaceholder(variable_name="context", optional=True),
|
||||
]
|
||||
)
|
||||
extractor = prompt | llm.with_structured_output(ExecuteCode)
|
||||
extractor = prompt | llm.with_structured_output(
|
||||
ExecuteCode, method="function_calling"
|
||||
)
|
||||
|
||||
def calculate_expression(
|
||||
problem: str,
|
||||
|
||||
Reference in New Issue
Block a user