MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / get_chat_history

Function get_chat_history

backend/app/api/chat.py:50–57  ·  view source on GitHub ↗

Get chat history for a specific pipeline.

(pipeline_id: str, limit: int = 50)

Source from the content-addressed store, hash-verified

48
49@router.get("/history/{pipeline_id}")
50async def get_chat_history(pipeline_id: str, limit: int = 50):
51 """Get chat history for a specific pipeline."""
52 # TODO: Implement database query
53 return {
54 "pipeline_id": pipeline_id,
55 "messages": [],
56 "total": 0
57 }
58
59@router.delete("/history/{pipeline_id}")
60async def clear_chat_history(pipeline_id: str):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected