MCPcopy
hub / github.com/OpenBMB/ChatDev / list_attachments

Function list_attachments

server/routes/uploads.py:39–45  ·  view source on GitHub ↗
(session_id: str)

Source from the content-addressed store, hash-verified

37
38@router.get("/api/uploads/{session_id}")
39async def list_attachments(session_id: str):
40 try:
41 manager = ensure_known_session(session_id, require_connection=False)
42 except ValidationError as exc:
43 raise HTTPException(status_code=400, detail=str(exc))
44 manifest = manager.attachment_service.list_attachment_manifests(session_id)
45 return {"attachments": manifest}

Callers

nothing calls this directly

Calls 2

ensure_known_sessionFunction · 0.90

Tested by

no test coverage detected