Replies: 1 comment
-
@avalatea maybe you could try using the StructuredOutputParser to ensure a specific output (just like the tool returns)?rn)? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Objective: Create a function using Langchain that directly returns the result of a tool (the
Ingredients_Object
) without involving the LLM in remaking or processing the tool's result.Current Implementation:
Desired Workflow:
get_ingredients_tool
should create theIngredients_Object
).Ingredients_Object
produced by the tool directly.Current Challenge:
Goal: Configure Langchain such that the LLM acts only in selecting the appropriate tool and argument, with no further manipulation or remaking of the tool's outcomes.
System Info
langchain==0.3.6
langchain-anthropic==0.2.1
langchain-community==0.3.0
langchain-core==0.3.14
langchain-google-community==2.0.0
langchain-mongodb==0.2.0
langchain-openai==0.2.1
langchain-text-splitters==0.3.0
Python 3.12.7
macos
Beta Was this translation helpful? Give feedback.
All reactions