MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getAllEvaluations

Function getAllEvaluations

packages/server/src/controllers/evaluations/index.ts:102–117  ·  view source on GitHub ↗
(req: Request, res: Response, next: NextFunction)

Source from the content-addressed store, hash-verified

100}
101
102const getAllEvaluations = async (req: Request, res: Response, next: NextFunction) => {
103 try {
104 const { page, limit } = getPageAndLimitParams(req)
105 const workspaceId = req.user?.activeWorkspaceId
106 if (!workspaceId) {
107 throw new InternalFlowiseError(
108 StatusCodes.NOT_FOUND,
109 `Error: evaluationsService.getAllEvaluations - workspace ${workspaceId} not found!`
110 )
111 }
112 const apiResponse = await evaluationsService.getAllEvaluations(workspaceId, page, limit)
113 return res.json(apiResponse)
114 } catch (error) {
115 next(error)
116 }
117}
118
119const isOutdated = async (req: Request, res: Response, next: NextFunction) => {
120 try {

Callers

nothing calls this directly

Calls 1

getPageAndLimitParamsFunction · 0.90

Tested by

no test coverage detected