MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / accept_suggestion

Function accept_suggestion

api/app/api/routes.py:215–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

213
214@bp.route('/accept_suggestion', methods=['POST'])
215def accept_suggestion():
216 # get id from route
217 request_body = request.get_json()
218 generation_id = request_body.get('id')
219 update_suggestion_as_used(generation_id)
220 return {"status": "success"}
221
222@bp.route('/session', methods=['POST'])
223def get_session_id():

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected