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

Function analysis_or_predict_question

backend/apps/chat/api/chat.py:411–415  ·  view source on GitHub ↗
(session: SessionDep, current_user: CurrentUser,
                                       current_assistant: CurrentAssistant, chat_record_id: int,
                                       action_type: str = Path(...,
                                                               description=f"{PLACEHOLDER_PREFIX}analysis_or_predict_action_type"))

Source from the content-addressed store, hash-verified

409
410@router.post("/record/{chat_record_id}/{action_type}", summary=f"{PLACEHOLDER_PREFIX}analysis_or_predict")
411async def analysis_or_predict_question(session: SessionDep, current_user: CurrentUser,
412 current_assistant: CurrentAssistant, chat_record_id: int,
413 action_type: str = Path(...,
414 description=f"{PLACEHOLDER_PREFIX}analysis_or_predict_action_type")):
415 return await analysis_or_predict(session, current_user, chat_record_id, action_type, current_assistant)
416
417
418async def analysis_or_predict(session: SessionDep, current_user: CurrentUser, chat_record_id: int, action_type: str,

Callers

nothing calls this directly

Calls 1

analysis_or_predictFunction · 0.85

Tested by

no test coverage detected