Skip to content

[Question] OverAllState 、RunnableConfig 该怎么用? #2239

@MilkWangStudio

Description

@MilkWangStudio

Question

NodeAction的apply方法返回的Map会被合并到State,输出时会根据state中的值给前端返回数据。
但是同一个会话中,第二次调用Graph,会将上次的State数据保留在第二次调用,导致输出错误。

请问使用state的最佳实践是什么?
1、state里应该保留什么数据?
2、Graph调用时的threadId,应该是会话ID吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/graphSAA Grpah modulekind/questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions