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

Function question_answer

backend/apps/chat/api/chat.py:272–274  ·  view source on GitHub ↗
(session: SessionDep, current_user: CurrentUser, request_question: ChatQuestion,
                          current_assistant: CurrentAssistant)

Source from the content-addressed store, hash-verified

270@router.post("/question", summary=f"{PLACEHOLDER_PREFIX}ask_question")
271@require_permissions(permission=SqlbotPermission(type='chat', keyExpression="request_question.chat_id"))
272async def question_answer(session: SessionDep, current_user: CurrentUser, request_question: ChatQuestion,
273 current_assistant: CurrentAssistant):
274 return await question_answer_inner(session, current_user, request_question, current_assistant, embedding=True)
275
276
277async def question_answer_inner(session: SessionDep, current_user: CurrentUser, request_question: ChatQuestion,

Callers

nothing calls this directly

Calls 1

question_answer_innerFunction · 0.85

Tested by

no test coverage detected