











I’m implementing a workflow where one of the nodes invokes an LLM that: Returns a structured output (written to state), and Conditionally calls a tool via a conditional edge, based on that output, and comes back to the same node in a React-like architecture. I wrote something like this: llm_with_tools = llm.bind_tools(tools) structured_llm = llm_with_tools.with_structured_output(A_given_class) The issue: When the LLM tries to call a tool, it mistakenly uses fields from the structured outpu...
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。