LangGraph Agents with Structured Output

preview_player
Показать описание
In this video we will cover how to get LangGraph agents to return structured output. There are two different methods we see being used for this - we discuss both!

Рекомендации по теме
Комментарии
Автор

can we for the love of god please do a different use case than grabbing the weather in sf every demo?

blueapollo
Автор

Is it possible to bake more instruction into the single-LLM first example's input prompt so it just follows the JSON format for its output? It's very easy for GPT4o to provide direct JSON output, for example. Just append ", answering in JSON format with the following structure {}" to whatever the input message to the LLM is? -Jason asking about JSON

ic_jason
Автор

Massive Applause 👏

The best introduction to structured output with LangChain out there!

Appreciate you keeping it so simple and explanatory with both examples!

gitmaxd
Автор

In the second example, if we are extracting the content of the tool message from the ToolNode and passing it as a HumanMessage in "respond", couldn't you have created a direct edge from the "tools" node to the "respond" node without coming back to the "agent" node for less token usage? Or am i missing a possible error?

Criszusep
Автор

pro-tip for the first diagram: make the nodes that are the same in the same place so I don't have to parse the whole thing to see there is only one extra node

sprobertson
Автор

Are there any really world problem example?

esatakkasoglu
Автор

Is there a way you guys could provide a transposed version of the code for typescript or mention in the videos how we could do it ourselves, I love langgraph but doing anything in typescript is a bit difficult compared to the python version

keenanfernandes
Автор

Is it true that only Mac users can use langgraph?
Is Agent Studio going to be available on other platforms?

IdPreferNot
Автор

Is this using the native structured Outputs support that openai is providing?

edendjanashvili
Автор

Please kindly provide notebooks links all these videos. Thx

kuhajeyangunaratnam
Автор

If the output is longer than 4000x tokens, how can we generate longer output? I have an expected structured output of 5000 tokens since the JSON is so large.

BoredOnTheWeekend