feat:LLM 分析文件并生成结构化建议
This commit is contained in:
@@ -11,7 +11,7 @@ from app.processor.nodes.intent_node import IntentNode
|
||||
from app.processor.nodes.qa_node import QANode
|
||||
from app.processor.nodes.screen_agent_node import ScreenAgentNode
|
||||
from app.processor.nodes.wait_for_user_node import WaitForUserNode
|
||||
from app.processor.state import QueryState
|
||||
from app.processor.state import QueryState, RunContext
|
||||
|
||||
|
||||
def build_checkpoint_serde() -> JsonPlusSerializer:
|
||||
@@ -47,7 +47,7 @@ def route_after_wait(state: QueryState) -> str:
|
||||
|
||||
|
||||
def build_graph(checkpointer=None):
|
||||
workflow = StateGraph(QueryState)
|
||||
workflow = StateGraph(QueryState, context_schema=RunContext)
|
||||
nodes = {
|
||||
"input_node": InputNode(),
|
||||
"intent_node": IntentNode(),
|
||||
|
||||
Reference in New Issue
Block a user