Feature request: Return the api_response
in APIChain.from_llm_and_api_docs _call
#19661
MatteoCarlone
announced in
Ideas
Replies: 0 comments
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
Feature request
While using
APIChain
to make our llm interact with APIs we faced the need to get the as return value the actual api response retrived by the LLM while reasoning.We simply fixed by adding the the return in the _call method here
and used it as:
The feature we want to propose is just adding the possibility get the the api payload when needed.
Motivation
The motivation for my request is precisely the need that I have encountered and that many other langchain users may encounter, namely the ability to get the api payload for more sophisticated logic in our code that goes beyond just using llm.
Proposal (If applicable)
Add a return to the _call and _acall method in the APIChain class here
Beta Was this translation helpful? Give feedback.
All reactions