MCPcopy
hub / github.com/docker/genai-stack / generate_ticket_api

Function generate_ticket_api

api.py:152–158  ·  view source on GitHub ↗
(question: BaseTicket = Depends())

Source from the content-addressed store, hash-verified

150
151@app.get("/generate-ticket")
152async def generate_ticket_api(question: BaseTicket = Depends()):
153 new_title, new_question = generate_ticket(
154 neo4j_graph=neo4j_graph,
155 llm_chain=llm_chain,
156 input_question=question.text,
157 )
158 return {"result": {"title": new_title, "text": new_question}, "model": llm_name}

Callers

nothing calls this directly

Calls 1

generate_ticketFunction · 0.90

Tested by

no test coverage detected