You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.
Example Code
# when i def the chatbot using follow code,i cant get the name when run the workflowasyncdefchatbot1(state: State, config: RunnableConfig):
config["run_name"] ="chatbot1"return {"messages": [awaitllm1.ainvoke(state["messages"], config)]}
# here i cant get nameasyncdefmessage_generator(user_input: str):
"""Generate streaming messages from the graph."""inputs= [HumanMessage(content=user_input)]
asyncformsg, metadataingraph.astream(
{"messages": inputs}, stream_mode="messages"
):
# here is none.# but i can get it when i using second wayprint(msg.name)
yieldjson.dumps({"content": msg.content})
# but when using follow code,i canasyncdefchatbot1(state: State, config: RunnableConfig):
RunnableConfig(run_name="chatbot1")
return {"messages": [awaitllm1.ainvoke(state["messages"], RunnableConfig(run_name="chatbot1"))]}
# that's why? is it a bug?
Error Message and Stack Trace (if applicable)
it's not a Error ,it's a phenomenon
Description
when i use first way to def the run_name,i cant get name in workflow processing ,but i can get it using seconds code!
System Info
pass
The text was updated successfully, but these errors were encountered:
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
it's not a Error ,it's a phenomenon
Description
when i use first way to def the run_name,i cant get name in workflow processing ,but i can get it using seconds code!
System Info
pass
The text was updated successfully, but these errors were encountered: