File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,11 @@ class Plan(TypedDict):
145
145
{"role" : "system" , "content" : configuration .research_plan_system_prompt }
146
146
] + state .messages
147
147
response = cast (Plan , await model .ainvoke (messages ))
148
- return {"steps" : response ["steps" ], "documents" : "delete" }
148
+ return {
149
+ "steps" : response ["steps" ],
150
+ "documents" : "delete" ,
151
+ "query" : state .messages [- 1 ].content ,
152
+ }
149
153
150
154
151
155
async def conduct_research (state : AgentState ) -> dict [str , Any ]:
Original file line number Diff line number Diff line change @@ -81,3 +81,4 @@ class AgentState(InputState):
81
81
"""Populated by the retriever. This is a list of documents that the agent can reference."""
82
82
answer : str = field (default = "" )
83
83
"""Final answer. Useful for evaluations"""
84
+ query : str = field (default = "" )
You can’t perform that action at this time.
0 commit comments