MCPcopy Index your code
hub / github.com/dataease/SQLBot / check_save_predict_data

Method check_save_predict_data

backend/apps/chat/task/llm.py:1084–1096  ·  view source on GitHub ↗
(self, session: Session, res: str)

Source from the content-addressed store, hash-verified

1082 return chart
1083
1084 def check_save_predict_data(self, session: Session, res: str) -> bool:
1085
1086 json_str = extract_nested_json(res)
1087
1088 if not json_str:
1089 json_str = ''
1090
1091 save_predict_data(session=session, record_id=self.record.id, data=json_str)
1092
1093 if json_str == '':
1094 return False
1095
1096 return True
1097
1098 def save_error(self, session: Session, message: str):
1099 return save_error_message(session=session, record_id=self.record.id, message=message)

Callers 1

Calls 2

extract_nested_jsonFunction · 0.90
save_predict_dataFunction · 0.90

Tested by

no test coverage detected