Add pass variable to prompt on create_react_agent langgraph #27331
Replies: 1 comment 4 replies
-
Hey @irufano! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together! To pass values to the variables Here's how you can pass the from langchain_core.pydantic_v1 import BaseModel
class Question(BaseModel):
question: str
user_id: str
session_id: str
# Create an instance of the Question with your specific question, user_id, and session_id
input_question = Question(question="Your specific question here", user_id="user123", session_id="session456")
# Invoke the chain with the input
result = chain(input_question) This code snippet shows how to create an instance of the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
i have prompt, tool, and agent
How to pass value on variable prompt {question} and {ai_response} on create_react_agent langgraph when invoking?
Beta Was this translation helpful? Give feedback.
All reactions