-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withStructuredOutput is not a function on ChatGoogleGenerativeAI #5484
Comments
Hey there, @yharaskrik! 👋 I'm Dosu, a bot here to lend a hand with bugs, answer questions, and guide you through becoming a contributor while we wait for a human maintainer to join us. Think of me as your friendly digital sidekick in navigating the world of LangChain JS. I'm diving into your issue now and will get back to you with a full answer shortly. Hang tight! 🤖 |
Oh I see the |
The |
Amazing thank you Brace! That's pretty much what I determined as well. I
went to try and do it myself but only got so far as copying the code from
the common package for those functions. I'm sure there's a better way just
not familiar with the structure of all the packages!
Thanks!
…On Mon, May 20, 2024, 11:11 AM Brace Sproul ***@***.***> wrote:
The withStructuredOutput isn't implemented (or normal tool calling for
that matter) in the @langchain/google-genai package. It's on my list to
implement both sometime this week though! I'll use this issue as a tracker
for when that goes in.
—
Reply to this email directly, view it on GitHub
<#5484 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACIHZITXNRW2OJXSVPZHXNTZDI4GNAVCNFSM6AAAAABIAD455GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRQHE2TIMJZGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
That's how I was planning on going about it as well! If you want to take a stab at it, I wouldn't start until tmro. So if you can put up a PR before tmro morning I would love to use your implementation! |
To implement the
This approach will help you contribute effectively to resolving the
|
The same applies for huggingface inference API, I'm getting the error |
same with groq |
Are there anyone is facing the issue that using withStructuredOutput not calling tool |
same with me sometimes works sometimes doesn't on groq |
Same on Ollama |
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
The
ChatGoogleGenerativeAI
class has thewithStructuredOutput
function on it, but it isundefined
. If it is not implemented for this model then it should not be on the types.System Info
Mac
yarn 1.22.7
node 18.20.2
The text was updated successfully, but these errors were encountered: