If I can get the RunnableConfig by the ensure_config () function #25573
Replies: 1 comment
-
Hello @xiaochaohit! I'm here to assist you with any bugs, questions, or contributions. Let me know how I can help you! The Here are a few things to check and try:
Here's an example of how you might modify your code to include some debug statements: @tool
def fetch_user_flight_information() -> list[dict]:
"""Fetch all tickets for the user along with corresponding flight information and seat assignments.
Returns:
A list of dictionaries where each dictionary contains the ticket details,
associated flight details, and the seat assignments for each ticket belonging to the user.
"""
config = ensure_config() # Fetch from the context
print("Config:", config) # Debug statement
configuration = config.get("configurable", {})
print("Configuration:", configuration) # Debug statement
passenger_id = configuration.get("passenger_id", None)
if not passenger_id:
raise ValueError("No passenger ID configured.")
conn = sqlite3.connect(db)
cursor = conn.cursor()
query = """
... If the Additionally, there are no known bugs related to the If you continue to face issues, please provide more details about how the context and configuration are being set up in your application. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
When I was testing with the langgraph chatbot tutorial.I can't get the runnableconfig using ensure_config function.
Are there any bugs in this tutorial?
I get the result like this.It not work
System Info
platform:linux
python version: 3.12
langchain-core:0.2.33
langgraph:0.2.4
Beta Was this translation helpful? Give feedback.
All reactions