How can i pass parameters from one node to another? #1822
Unanswered
shahzain110
asked this question in
Q&A
Replies: 1 comment 2 replies
-
How are you updating the state? Could you show me those |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
I am trying to build a coding assistant, which will have tools "Manager" , "Coder" , "Senior Coder/Reviewer", "Tester", "Compiler"

I am having difficult is passing "manager" gathered requirements to "coder" and "coder" code to "Senior Coder/Reviewer"
these are my tools and state.
`
Define your desired data structure.
class CodeGeneration(BaseModel):
code: str = Field(description="Only the code function code")
code_description: str = Field(description="description of code if any else None")
@tool
def get_code(config: RunnableConfig) -> dict:
"""this function will take requirements and generate code"""
@tool
def get_requirements(config: RunnableConfig) -> dict:
"""Gather the requirements for a function based on user-provided information."""
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> in get_requirements >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
from typing import Annotated
from typing_extensions import TypedDict
from langgraph.graph.message import AnyMessage, add_messages
class State(TypedDict):
messages: Annotated[list[AnyMessage], add_messages]
`
Beta Was this translation helpful? Give feedback.
All reactions