We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent effb419 commit 52401d3Copy full SHA for 52401d3
text_2_sql/autogen/src/autogen_text_2_sql/autogen_text_2_sql.py
@@ -187,7 +187,10 @@ async def process_question(
187
# Update input
188
for idx, chat in enumerate(chat_history):
189
# For now only consider the user query
190
- agent_input[f"chat_{idx}"] = chat.request.question
+ chat_history_key = f"chat_{idx}"
191
+ agent_input[
192
+ chat_history_key
193
+ ] = chat.request_response_pair.request.question
194
195
async for message in self.agentic_flow.run_stream(task=json.dumps(agent_input)):
196
logging.debug("Message: %s", message)
0 commit comments