user()->currentWorkspace; if ($post->workspace_id !== $workspace->id) { abort(Response::HTTP_FORBIDDEN); } $agent = new PostContentReviewer(workspace: $workspace); $result = $agent->prompt($request->string('content')->toString()); return response()->json([ 'suggestions' => data_get($result, 'suggestions', []), ]); } }